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. Session Lost

Session Lost

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 5 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.
  • W Offline
    W Offline
    Waheed Ur Rehman
    wrote on last edited by
    #1

    Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You

    V A K 3 Replies Last reply
    0
    • W Waheed Ur Rehman

      Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You

      V Offline
      V Offline
      vaghelabhavesh
      wrote on last edited by
      #2

      What is the SessionState Mode[^] in your web.config? Is it set to off?

      Be careful, there is no Undo Button(Ctrl+Z) in life.

      W 1 Reply Last reply
      0
      • V vaghelabhavesh

        What is the SessionState Mode[^] in your web.config? Is it set to off?

        Be careful, there is no Undo Button(Ctrl+Z) in life.

        W Offline
        W Offline
        Waheed Ur Rehman
        wrote on last edited by
        #3

        Dear Sir, I am using sessionstate mode="InProc" cookieless="false" timeout="40" Every thing was working fine a week ago. Thank You

        1 Reply Last reply
        0
        • W Waheed Ur Rehman

          Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You

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

          Waheed Ur Rehman wrote:

          i have checked after response.Redirect the session is lost and the value is null on the redirected page.

          Can you please put the line of code for Response.Redirect() and Session Store ?

          cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

          1 Reply Last reply
          0
          • W Waheed Ur Rehman

            Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You

            K Offline
            K Offline
            kishorg1
            wrote on last edited by
            #5

            Hey....U can directly put username in session. Session["UserInfo"] = LoginName; and u can access that value in another page like string Loginname=Session["UserInfo"].toStirng();

            A 1 Reply Last reply
            0
            • K kishorg1

              Hey....U can directly put username in session. Session["UserInfo"] = LoginName; and u can access that value in another page like string Loginname=Session["UserInfo"].toStirng();

              A Offline
              A Offline
              Ashutosh Phoujdar
              wrote on last edited by
              #6

              As per his replies, He tried that and problem lies somewhere else :)

              dnpro "Very bad programmer" My Latest Articles RichTextBox Control with Find functionality LogViewer - A Simple Log Listening Utility

              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