sessions

G

Gav

Hi,
Can someone explain to me how you set a session and how you check the
session?

cheers,
Gavin
 
M

Mark Schupp

1. make sure sessions are enabled in the properties of the virtual folder
(internet services manager - virtual directory properties-virtual directory
tab - configuration button - app options tab)
2. next make sure that your browser accepts "session" cookies (session
cookies are in-memory cookies that expire when the browser process
terminates).

3. set the session variables as desired:

page1.asp
<%
session("myvar")="hello world"
%>

page2.asp
<%
response.write session("myvar")
%>
 

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

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top