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

ASP session expire issue

Scheduled Pinned Locked Moved Web Development
questioncsharpasp-nethelp
4 Posts 4 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.
  • 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

    J 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

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Oh George, your questions are still as obscure as they've always been. Whats to stop a programmer setting session["timeToken"] = ""? It doesnt necessarily mean the whole session is expired, just that that particular variable has been set to an empty string.

      L 1 Reply Last reply
      0
      • J J4amieC

        Oh George, your questions are still as obscure as they've always been. Whats to stop a programmer setting session["timeToken"] = ""? It doesnt necessarily mean the whole session is expired, just that that particular variable has been set to an empty string.

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        J4amieC wrote:

        Oh George, your questions are still as obscure as they've always been.

        I'm hoping you didn't fall out of your chair. ;)

        P 1 Reply Last reply
        0
        • L led mike

          J4amieC wrote:

          Oh George, your questions are still as obscure as they've always been.

          I'm hoping you didn't fall out of your chair. ;)

          P Offline
          P Offline
          PrestonMB
          wrote on last edited by
          #4

          Can't you just insert the code in the GLOBAL.ASA to handle whatever it is you are trying to do?

          Preston Tech Director / Developer MetalBuilding.com

          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