test of member identification in PHP - Posted (655 Views)
Member Locked
eauxvives
Posts: 145
145
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?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
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<
Posted
Member Locked
eauxvives
Posts: 145
145
And does the cookie contain anything else than the user name?<
Posted
Forum Admin
HuwR
Posts: 20611
20611
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<
 
You Must enter a message