Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Login View Problem [modified]

Login View Problem [modified]

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-net
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    specialdreamsin
    wrote on last edited by
    #1

    Hi all, In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control. It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login" But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now. Still same problem. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" /> pl.help me out Ramesh Sambari

    Knowledge is like honey. Collect it, to make life sweet.

    modified on Thursday, September 17, 2009 1:03 AM

    N 1 Reply Last reply
    0
    • S specialdreamsin

      Hi all, In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control. It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login" But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now. Still same problem. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" /> pl.help me out Ramesh Sambari

      Knowledge is like honey. Collect it, to make life sweet.

      modified on Thursday, September 17, 2009 1:03 AM

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      specialdreamsin wrote:

      But user is already logged in

      How do you know it?

      specialdreamsin wrote:

      I think this is Session problem

      What is your session timeout limit? Is it timing out before that?

      specialdreamsin wrote:

      I have used below line earlier. I commented it now. Still same problem.

      You haven't provided any line.

      specialdreamsin wrote:

      I have used Login View to show the Login Status

      Do you really need a control for simple login purpose?

      Navaneeth How to use google | Ask smart questions

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        specialdreamsin wrote:

        But user is already logged in

        How do you know it?

        specialdreamsin wrote:

        I think this is Session problem

        What is your session timeout limit? Is it timing out before that?

        specialdreamsin wrote:

        I have used below line earlier. I commented it now. Still same problem.

        You haven't provided any line.

        specialdreamsin wrote:

        I have used Login View to show the Login Status

        Do you really need a control for simple login purpose?

        Navaneeth How to use google | Ask smart questions

        S Offline
        S Offline
        specialdreamsin
        wrote on last edited by
        #3

        plz...Look at my Original Message now.. I unexpectedly ticked the option Do not interpret HTML tags (good for code snippets) While posting message. pl.look in to it and reply me. Ramesh Sambari

        Knowledge is like honey. Collect it, to make life sweet.

        A 1 Reply Last reply
        0
        • S specialdreamsin

          plz...Look at my Original Message now.. I unexpectedly ticked the option Do not interpret HTML tags (good for code snippets) While posting message. pl.look in to it and reply me. Ramesh Sambari

          Knowledge is like honey. Collect it, to make life sweet.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          specialdreamsin wrote:

          sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400"

          What is that ? :omg: what is the use of stateConnectionString and sqlConnectionString over Inproc Session Mode ? Please read this article,It will help. Exploring Session in ASP.Net[^]

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          S 1 Reply Last reply
          0
          • A Abhijit Jana

            specialdreamsin wrote:

            sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400"

            What is that ? :omg: what is the use of stateConnectionString and sqlConnectionString over Inproc Session Mode ? Please read this article,It will help. Exploring Session in ASP.Net[^]

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            S Offline
            S Offline
            specialdreamsin
            wrote on last edited by
            #5

            hi, In my website, First is the Login Page. I used Login Control for that. On Successful Login I am assigning to a Sesssion variable i-e Session("UserId")="user1". Next page is the Main.aspx, In this I used Login view control. It is showing as user1 [Signout]. Its correct. After few minutes...if I am idle ... the Loginview message is changing to user1[Signin] in the main page. Session("UserId") is still user1, but login view is showing wrong information. This is the problem. Plz help me. Ramesh Sambari

            Knowledge is like honey. Collect it, to make life sweet.

            A 1 Reply Last reply
            0
            • S specialdreamsin

              hi, In my website, First is the Login Page. I used Login Control for that. On Successful Login I am assigning to a Sesssion variable i-e Session("UserId")="user1". Next page is the Main.aspx, In this I used Login view control. It is showing as user1 [Signout]. Its correct. After few minutes...if I am idle ... the Loginview message is changing to user1[Signin] in the main page. Session("UserId") is still user1, but login view is showing wrong information. This is the problem. Plz help me. Ramesh Sambari

              Knowledge is like honey. Collect it, to make life sweet.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Did you read the article link that I have provided to you ? :)

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups