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. Managing session

Managing session

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • K Offline
    K Offline
    krishnaveer
    wrote on last edited by
    #1

    Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh

    krishna veer singh

    S B 2 Replies Last reply
    0
    • K krishnaveer

      Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh

      krishna veer singh

      S Offline
      S Offline
      sriharsha_12
      wrote on last edited by
      #2

      once u give a value to session variable, it will remain d same, until the session expires or u modify that variable...so why u need to check that in every page...

      N 1 Reply Last reply
      0
      • K krishnaveer

        Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh

        krishna veer singh

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        krishnaveer wrote:

        Is there any other way to manage session. so that i need not to check session in every page?

        There are ways, but simple way is this only.Whenever a pageload occurs have some common function that is called to check, whether session is alive or not ,accordingly take further actions. For more details Have a look

        Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

        1 Reply Last reply
        0
        • S sriharsha_12

          once u give a value to session variable, it will remain d same, until the session expires or u modify that variable...so why u need to check that in every page...

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          sriharsha_12 wrote:

          until the session expires or u modify that variable

          sriharsha_12 wrote:

          so why u need to check that in every page

          Because it could have expired or been changed :doh:


          I know the language. I've read a book. - _Madmatt

          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