Click to See Complete Forum and Search --> : Session Variables Problem


paddywhistler
May 2nd, 2004, 04:08 PM
Hi Everyone,

I have a problem with setting up my session variables. My ASP/VBScript pages link to an Access database. The login page checks username & password against the registered users table, if valid user, redirects to the catalogue page, if not reloads login page. This all works fine.

What I need to do is set up a session variable to pass the username for display on the catalogue page. I've had absolutely no luck whatsoever.

Can anyone help pls?

Thanx

jlot6
May 2nd, 2004, 07:37 PM
To create a session variable, do the following:

Session("id") = Request.Form("username")

To retrieve the session variable, do the following:

Response.Write Session("id")

Hope this helps...

paddywhistler
May 3rd, 2004, 06:12 AM
Thanks for the reply jlot6, your suggestion works beautifully!!!

Think I was looking too deeply and tying myself in knots as I was using the MM tags created within Dreamweaver.

Thanks again :wave: