Getting the login user

B

BobLaughland

Hi All,

I am writing a website with a 'Login' control. I.E. the first page is a
login page and the user cannot get any further without logging in.

What I am wanting to do is get the login 'User Name' at a random spot
in my code. What I mean is that I want the 'login user name' text to
write into the database against a record I am creating so that I know
which user created that data.

Thanks,

Peter.
 
B

badmotorvision

Read up on the session object.
Useage:

VB
To Set
Session("USERID") = ls_Userid '
To get later
Dim ls_Userid as string
ls_userid = Session("USERID")
 
B

badmotorvision

Read up on the session object.
Useage:

VB
To Set
Session("USERID") = ls_Userid '
To get later
Dim ls_Userid as string
ls_userid = Session("USERID")
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top