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 time out

session time out

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

    Hi guys, iam using session in my project some session variables are interger some other string. when session expired i click next button they show error, so i want to validate when session is expired. so please give some ideas how to validate

    Praveen Kumar.R

    C P N S 4 Replies Last reply
    0
    • P praveenkumar_mca

      Hi guys, iam using session in my project some session variables are interger some other string. when session expired i click next button they show error, so i want to validate when session is expired. so please give some ideas how to validate

      Praveen Kumar.R

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

      The best you can do is work out in your pages that it has timed out, and redirect to the login page.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • P praveenkumar_mca

        Hi guys, iam using session in my project some session variables are interger some other string. when session expired i click next button they show error, so i want to validate when session is expired. so please give some ideas how to validate

        Praveen Kumar.R

        P Offline
        P Offline
        Parwej Ahamad
        wrote on last edited by
        #3

        Before getting the data from the Session first check is not null.

        Parwej Ahamad g.parwez@gmail.com

        1 Reply Last reply
        0
        • P praveenkumar_mca

          Hi guys, iam using session in my project some session variables are interger some other string. when session expired i click next button they show error, so i want to validate when session is expired. so please give some ideas how to validate

          Praveen Kumar.R

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          praveenkumar_mca wrote:

          so i want to validate when session is expired.

          As Christian told you need to validate session existence on each page_load. It could be something like

          if ( session["yoursessionvalue"] == null)
          Response.Redirect("Loginpage");


          My Website | Ask smart questions

          1 Reply Last reply
          0
          • P praveenkumar_mca

            Hi guys, iam using session in my project some session variables are interger some other string. when session expired i click next button they show error, so i want to validate when session is expired. so please give some ideas how to validate

            Praveen Kumar.R

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

            Check the session value in page load. If it is null then redirect the login page showing the message that your session is time out.

            C 1 Reply Last reply
            0
            • S sPaudel

              Check the session value in page load. If it is null then redirect the login page showing the message that your session is time out.

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

              Why is it that suddenly so many questions get the same answer given over and over again ?

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              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