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 Variable Problem

Session Variable Problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadmintutorial
8 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
    sivaprakas
    wrote on last edited by
    #1

    Hi i have developed an Asp.Net Website i use Session Variable to track the user it work properly in my local system i have installed my website on local server and test it but the session not work properly in the local server when i access it from my machine the session varialble losss its datas how to prevent it please help me :doh:

    B E 2 Replies Last reply
    0
    • S sivaprakas

      Hi i have developed an Asp.Net Website i use Session Variable to track the user it work properly in my local system i have installed my website on local server and test it but the session not work properly in the local server when i access it from my machine the session varialble losss its datas how to prevent it please help me :doh:

      B Offline
      B Offline
      bokuceres
      wrote on last edited by
      #2

      have you try to set things right in global asax ? maybe you set your session variable to default in application_start ?

      S 1 Reply Last reply
      0
      • S sivaprakas

        Hi i have developed an Asp.Net Website i use Session Variable to track the user it work properly in my local system i have installed my website on local server and test it but the session not work properly in the local server when i access it from my machine the session varialble losss its datas how to prevent it please help me :doh:

        E Offline
        E Offline
        Elayaraja Sambasivam
        wrote on last edited by
        #3

        session variable will be reseted , once you close the browser window, if you want to keep the values until reset the server, use Application variables or cache variables. also - if the browser disabled the cookies, session variables will reseted every postback of the page. regards Elayaraja.S

        S 1 Reply Last reply
        0
        • B bokuceres

          have you try to set things right in global asax ? maybe you set your session variable to default in application_start ?

          S Offline
          S Offline
          sivaprakas
          wrote on last edited by
          #4

          In my ASp.net Website Application there is no Global.aspx file pls help me how to set global.aspx file r how to keep session i have give value to session variable in login page

          B 1 Reply Last reply
          0
          • E Elayaraja Sambasivam

            session variable will be reseted , once you close the browser window, if you want to keep the values until reset the server, use Application variables or cache variables. also - if the browser disabled the cookies, session variables will reseted every postback of the page. regards Elayaraja.S

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

            i did't close the browser window i work on the same browser without logout but the session variable can't be accesssble why this happen pls help me

            1 Reply Last reply
            0
            • S sivaprakas

              In my ASp.net Website Application there is no Global.aspx file pls help me how to set global.aspx file r how to keep session i have give value to session variable in login page

              B Offline
              B Offline
              bokuceres
              wrote on last edited by
              #6

              simple... just add new item and choose global.asax and you can set the (not so..) whole new world at it... hope it help

              S 1 Reply Last reply
              0
              • B bokuceres

                simple... just add new item and choose global.asax and you can set the (not so..) whole new world at it... hope it help

                S Offline
                S Offline
                sivaprakas
                wrote on last edited by
                #7

                sir i changed my system firewall settings now i can acccess website installed on my system from any where on my LAN except from LOcal Server why this happen have to change any firewall settings on local server help me

                B 1 Reply Last reply
                0
                • S sivaprakas

                  sir i changed my system firewall settings now i can acccess website installed on my system from any where on my LAN except from LOcal Server why this happen have to change any firewall settings on local server help me

                  B Offline
                  B Offline
                  bokuceres
                  wrote on last edited by
                  #8

                  wow.. that's fast.. hehehe :p ok. maybe u should setting your proxy, if you have any. so you can access your own localhost. ooorrrrr... maybe you should setting your browser. if ie = internet options -> connections -> lan settings -> bypass proxy server for local address if firefox = ....well, i believe you can do it... hope can help

                  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