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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 test of member identification in PHP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 21 August 2006 :  02:45:42  Show Profile  Reply with Quote
Hello all
I was wondering if anyone had developped some PHP code to test whether a member is logged in on snitz forum and then recover memberID
the reason why I'm asking is that my site uses snitz identification for the whole site which is mainly in ASP
a colleague has developped a PHP application for our site and we would like to restrict access to some PHP pages based on snitz member ID

if not, how should we do this? recover memberID from the cookie?<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 August 2006 :  02:47:55  Show Profile  Visit HuwR's Homepage  Reply with Quote
yes, using the cookie method is probably easiest, the database although it knows who you are does not actually know whether you are logged in<
Go to Top of Page

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 21 August 2006 :  03:56:11  Show Profile  Reply with Quote
And does the cookie contain anything else than the user name?<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 August 2006 :  04:31:13  Show Profile  Visit HuwR's Homepage  Reply with Quote
it also contains the last_here_date variable, and it may or may not contain the password (depending on whether the use has selected "remember me" when logging in) have a look at the doCookies function in inc_func_common.asp<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07