Solved

session variables

Posted on 2004-04-05
6
288 Views
Last Modified: 2010-04-25
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
0
Comment
Question by:willa666
6 Comments
 
LVL 20

Expert Comment

by:trailblazzyr55
ID: 10757339
All you are trying to do is set session variables?
0
 
LVL 1

Author Comment

by:willa666
ID: 10757554
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
 
LVL 35

Expert Comment

by:mrichmon
ID: 10758992
It depends on the language you are using.  Is it ASP? PHP? Cold Fusion? etc...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:willa666
ID: 10759016
asp with a sql backend
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10759583
In ASP the session variable is called MM_Username

Here is a tutorial :
http://www.dmxzone.com/ShowDetail.asp?NewsId=6402
0
 
LVL 8

Accepted Solution

by:
alexhogan earned 250 total points
ID: 10784679
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now