Adam Marash
|
Posted: 04/24/2001, 11:05 AM |
|
I would like to create a string that says:
"You are logged in as <username>. Click _here_ (link) to logout."
or
"You are not logged in. Click _here_ to login."
Therefore:
1. How do I look up a user's login status (logged in/not logged in)?
2. What actions do I need behind the "_here_" link to:
a.) login without using the login form?
b.) logout without using the login form?
|
|
|
Walker P.
|
Posted: 04/25/2001, 2:48 PM |
|
The inbuilt CodeCharge login system sets a session variable when a user logs
in and subsequently clears the variable when the user logouts out. The
variable contains the primary key which uniquely identifies the the
currently logged in user.
You can make your customized login page by similarly setting a session
variable which expires after a certain amount of time or when clear upon
logging out.
---onLogin---
session("userID") = user_id
--onLogout---
session("userID")= ""
CodeCharge Support
"Adam Marash" <faxman@altavista.net> wrote in message
news:9c4f97$tp6$1@mail.tankhill.com...
> I would like to create a string that says:
> "You are logged in as <username>. Click _here_ (link) to logout."
> or
> "You are not logged in. Click _here_ to login."
>
> Therefore:
> 1. How do I look up a user's login status (logged in/not logged in)?
> 2. What actions do I need behind the "_here_" link to:
> a.) login without using the login form?
> b.) logout without using the login form?
>
>
>
|
|
|
|