session variables

Where can I learn about how to create a session variables when a user logon
in via a page that has been created with DWMX authentication?

I need ethier a web demo or can someone explain.

Willa
LVL 1
willa666Asked:
Who is Participating?
 
alexhoganConnect With a Mentor Commented:
A session is something that is live while you are in the site that contains the application that you are using or logged in to.

Session variables are set in ASP by using;
<%
session(variable name) = "value for session variable"
%>

So if you wanted to set a session var for a username you would use;

session(username) = "willa666"

To retreive the value of the variable in the session you simply use;

myvar = session(username)

Now myvar = willa666

This is a simple explanation.
0
 
trailblazzyr55Commented:
All you are trying to do is set session variables?
0
 
willa666Author Commented:
Yes this is correct but i want the veribal to be set at the time when the user logs into the logon page.

Then to take it one stage futher i want to be able to use that varible in a recordset.

is that simple to do?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
mrichmonCommented:
It depends on the language you are using.  Is it ASP? PHP? Cold Fusion? etc...
0
 
willa666Author Commented:
asp with a sql backend
0
 
mrichmonCommented:
In ASP the session variable is called MM_Username

Here is a tutorial :
http://www.dmxzone.com/ShowDetail.asp?NewsId=6402
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.