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 State

Session State

Scheduled Pinned Locked Moved ASP.NET
questionsysadmin
2 Posts 2 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
    goatstudio
    wrote on last edited by
    #1

    Hi all, I use Session to store my user object.UserObj NewUsr = new UserObj (); if (NewUsr.LoginValidate (TextBox_ID.Text, TextBox_Password.Text)){ Session ["MM_UserObj"] = NewUsr; RedirectTo = "main.aspx"; } At every page I do a check on this session if (Session ["MM_UserObj"] == null) { Response.Redirect("default.aspx"); return; } This work find in my XP Professional... untill I move the entire web application to my Win2k Avd server... The session seem very fast to disappear (a after 1 or 2 pages). Any idea what is going on? Thanks. regards, vic

    F 1 Reply Last reply
    0
    • G goatstudio

      Hi all, I use Session to store my user object.UserObj NewUsr = new UserObj (); if (NewUsr.LoginValidate (TextBox_ID.Text, TextBox_Password.Text)){ Session ["MM_UserObj"] = NewUsr; RedirectTo = "main.aspx"; } At every page I do a check on this session if (Session ["MM_UserObj"] == null) { Response.Redirect("default.aspx"); return; } This work find in my XP Professional... untill I move the entire web application to my Win2k Avd server... The session seem very fast to disappear (a after 1 or 2 pages). Any idea what is going on? Thanks. regards, vic

      F Offline
      F Offline
      fadee
      wrote on last edited by
      #2

      check application's WEB.CONFIG and try increasing the session timeout... by default it is 20 minutes. good luck ------------------- Therez No Place like ... 127.0.0.1

      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