DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    5

    Unhappy Classic Asp Session Variables

    I am using the following code to set my Session variable:

    If IsNull( Session("Month") ) Then
    Session("Month") = Month(Now())
    End If


    It does not appear to be working. What value do I have to test for when the Session is new or TimedOut?

  2. #2
    Join Date
    Oct 2008
    Posts
    141
    i am not saying this is going to work, but you can try:

    isempty() function

    isobject() function

    and also

    if session("variable") is nothing ...

    good luck,

    tonci korsano

Similar Threads

  1. Session variables losing their value :(
    By ryanritten in forum Web
    Replies: 1
    Last Post: 08-19-2010, 06:33 PM
  2. Replies: 1
    Last Post: 09-03-2009, 05:23 PM
  3. Problem getting session information
    By partyk1d24 in forum AJAX
    Replies: 2
    Last Post: 02-16-2007, 02:18 PM
  4. Replies: 2
    Last Post: 08-01-2005, 03:12 PM
  5. Passing session variables between ASPX and ASP
    By Greg Rothlander in forum ASP.NET
    Replies: 2
    Last Post: 04-25-2002, 01:32 PM

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