Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Logout Timeout
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Lacey
Junior Member

USA
122 Posts

Posted - 19 June 2001 :  12:25:30  Show Profile  Visit Lacey's Homepage  Send Lacey an AOL message
My question is this: What and where do I need to put the code that will "CLOSE" connection to the forum when a person has left the site via Xing out the window instead of LOGOUT?

In other words.. If I were to just X out of this window,when I come back tomorrow, it will have me still logged in. But what I'd like to do is as soon as the window is closed, that the connection is broken and the person would need to re-log in..

OR

How could I get it so that when a person DOES return later, that s/he is sent to the correct page?

When a person wants to log in by clicking on the "Members Only" button, they go to the "sign on" page. Then once the member has logged in by putting their username/password in and clicking on the login button,they are then sent to the "members menu" page. But if they have left the site by clicking on the X and closing their browser and then return.. then when they click on the "MEMBERS ONLY" button, they are sent to the "sign on" screen and not to the "Members Menu" page where they should be since they are seen as logged in already.

So.. the answer would need to be either:
1) what to code to make the system see if the person is already logged in and send to a specified page; or
2) what to code to make it so if the members closes the browser without officially logging out that there would be a "time out" on the login for that member.

OK..how many are confused now?

If it would help, y'all can view what I've done so far (MUCH work still in progress here). My site is at: http://lfga.net/indextheme.asp You can "register" then go to "members only" to see what I mean.



Note here: This is a site not launched or made public yet.. so shhhhhh!

Also, any help in the area of coding some of it would be sooo greatly appreciated!!!

I'm integrating Snitz with the ranking all using SQL database..

 
 


~L~
"Have a mah-vah-LACEY day~"

big9erfan
Average Member

540 Posts

Posted - 19 June 2001 :  12:58:43  Show Profile
Solution #2

On the click on the members only button let it go to the normal login page, but so this kind of check before.

All this will be placed at the top of the file after any includes, but before any html

Response.Buffer = true

strName = Response.Cookies(strUniqueID & "User")("Name")
strPass = Response.Cookies(strUniqueID & "User")("Pword")

if strName <> "" and strPass <> "" then
Response.Redirect "MembersMenuPage.asp"
end if

Insert the rest of your code here


Lemme know if that works...It's kinda off the top of my head and I haven't had enough Diet Coke this morning to wake up yet.


http://www.ugfl.net/forums

Edited by - big9erfan on 19 June 2001 12:59:09
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07