• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

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.

1 Solution
All you are trying to do is set session variables?
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?
It depends on the language you are using.  Is it ASP? PHP? Cold Fusion? etc...
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

willa666Author Commented:
asp with a sql backend
In ASP the session variable is called MM_Username

Here is a tutorial :
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.
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now