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. ASP session expire issue

ASP session expire issue

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelp
8 Posts 4 Posters 2 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.
  • G Offline
    G Offline
    George_George
    wrote on last edited by
    #1

    Hello everyone, My question is related to ASP classic, not ASP.Net, my question is -- whether it is good code to judge that, if a session variable is "" (Empty String), then I treat session as expired? Like this,

        if session("timeToken") = "" then
        // logics deal with session expire?
    

    thanks in advance, George

    A A 2 Replies Last reply
    0
    • G George_George

      Hello everyone, My question is related to ASP classic, not ASP.Net, my question is -- whether it is good code to judge that, if a session variable is "" (Empty String), then I treat session as expired? Like this,

          if session("timeToken") = "" then
          // logics deal with session expire?
      

      thanks in advance, George

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

      George_George wrote:

      My question is related to ASP classic, not ASP.Net

      But George this is ASP.Net Forum. :)

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

      G 1 Reply Last reply
      0
      • A Abhijit Jana

        George_George wrote:

        My question is related to ASP classic, not ASP.Net

        But George this is ASP.Net Forum. :)

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

        G Offline
        G Offline
        George_George
        wrote on last edited by
        #3

        But Abhijit where to ask? :-)

        C 1 Reply Last reply
        0
        • G George_George

          But Abhijit where to ask? :-)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          The web development forum.

          Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

          G 1 Reply Last reply
          0
          • C Christian Graus

            The web development forum.

            Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

            G Offline
            G Offline
            George_George
            wrote on last edited by
            #5

            Going there, thanks! regards, George

            1 Reply Last reply
            0
            • G George_George

              Hello everyone, My question is related to ASP classic, not ASP.Net, my question is -- whether it is good code to judge that, if a session variable is "" (Empty String), then I treat session as expired? Like this,

                  if session("timeToken") = "" then
                  // logics deal with session expire?
              

              thanks in advance, George

              A Offline
              A Offline
              A k ch
              wrote on last edited by
              #6

              When session expires every session object will be set to "null" .Please compare with null instead of empty string. If you want to compare with empty string then convert session variable into string format.

              modified on Friday, June 5, 2009 5:48 AM

              C G 2 Replies Last reply
              0
              • A A k ch

                When session expires every session object will be set to "null" .Please compare with null instead of empty string. If you want to compare with empty string then convert session variable into string format.

                modified on Friday, June 5, 2009 5:48 AM

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                You are an idiot. Try reading the question before answering it.

                Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

                1 Reply Last reply
                0
                • A A k ch

                  When session expires every session object will be set to "null" .Please compare with null instead of empty string. If you want to compare with empty string then convert session variable into string format.

                  modified on Friday, June 5, 2009 5:48 AM

                  G Offline
                  G Offline
                  George_George
                  wrote on last edited by
                  #8

                  What is the issue in my code and differences compared with my code? regards, George

                  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