test of member identification in PHP - Postet den (656 Views)
Medlem er låst
eauxvives
Innlegg: 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?<
   
 Sidestørrelse 
Postet den
Forum Admin
HuwR
Innlegg: 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<
Postet den
Medlem er låst
eauxvives
Innlegg: 145
145
And does the cookie contain anything else than the user name?<
Postet den
Forum Admin
HuwR
Innlegg: 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<
 
Du må legge inn en melding