T O P I C R E V I E W |
eauxvives |
Posted - 21 August 2006 : 02:45:42 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?< |
3 L A T E S T R E P L I E S (Newest First) |
HuwR |
Posted - 21 August 2006 : 04:31:13 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< |
eauxvives |
Posted - 21 August 2006 : 03:56:11 And does the cookie contain anything else than the user name?< |
HuwR |
Posted - 21 August 2006 : 02:47:55 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< |