Home | Advertising Info37 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, February 19, 2017  
 
 







DISCUSSION ARCHIVES
DISCUSSION ARCHIVES 2
DISCUSSION ARCHIVES 3
BLOG

 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 
 


How to use session variables




Session variables are very easy to use. One use for session variables might be storing user preferences or password access. Session variables disappear as soon as the users session at your site is over. If you want something that will still be around when they re-visit your site you may want to look into creating cookies.

Here is an example of creating a session variable called "SiteBgcolor"

<% Session("SiteBgcolor") = "Blue" %>

Here is an example of retrieving that variable. Once session variables are created you can access them all throughout your web site.

<% =Session("SiteBgcolor") %>

Please Note:  The clients browser must have cookies enabled for session variables to work because session variables use a cookie called SessionID. Sorry, that's just how they work.

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com