DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Posts
    1

    Unhappy Session variables losing their value :(

    Hey all,

    I use ASP, but this question involves session variables in ASP. Not sure where to post my question.

    I am having issues which session variables getting cleared. I use session variables when a user logs into my website. I store their username/userid in them.

    For some reason they randomly get cleared. I have the session timeout set to 120, but i've seen the session variables get cleared after 30 minutes.

    I tried using AJAX to once every 5 minutes call an ASP page that refreshes the session object (or at least I think it does)

    refresh.asp

    Code:
    Session("userid") = Session("userid")
    Session("username") = Session("username")
    Any thoughts?

    Thanks a bunch!
    Ryan

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    I wish I could help more than just move your thread to the appropriate forum section.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Problem getting session information
    By partyk1d24 in forum AJAX
    Replies: 2
    Last Post: 02-16-2007, 02:18 PM
  2. Replies: 4
    Last Post: 01-19-2007, 08:04 AM
  3. Use Session variables in Global.aspx
    By kero in forum ASP.NET
    Replies: 9
    Last Post: 09-19-2005, 08:54 AM
  4. releasing session variables
    By Matt Markus in forum ASP.NET
    Replies: 3
    Last Post: 06-16-2003, 05:48 PM
  5. Lose of Session variables
    By Yang Du in forum ASP.NET
    Replies: 2
    Last Post: 10-26-2001, 10:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links