CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Login Status/Logout

Print topic Send  topic

Author Message
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?
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.