Session Variables with FP2003

R

Ray

I don't know much about these yet, but I want to be able to pass certain
variables to all of my asp pages. What I
want to do is read all of the variables from the database on my default.asp
page and then then when I navigate
around the site be able to pass them around without having to re-read them
each time.

I've heard about seesion variables - would these do the job, and if so how
do I load them and subsequently use them.

If anybody can help, please tell me exactly where to put them in my code.

Ray
 
P

Paul Baker [MVP, Windows - SDK]

The traditional way to maintain session state is to set session cookies. ASP
implements this by setting a session ID cookie and letting you read/set
session variables using the Session.Contents collection. I think it is the
default property of Session, meaning you can do 'Session("name")=value',
etc. This method requires session cookies to be supported and enabled in the
web browser client.

http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_sesoccon.asp

ASP.net offers several new ways of maintaining session state. It can be
maintained in a SQL Server database (which is kind of contrary to the whole
point of your post). There is also something called cookieless session
state, where the session ID is made part of the URL automatically. I am
unfamiliar with the details.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top