test of member identification in PHP - نوشته شده در (657 Views)
کاربر قفل شده
eauxvives
مطلب: 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?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Admin
HuwR
مطلب: 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<
نوشته شده در
کاربر قفل شده
eauxvives
مطلب: 145
145
And does the cookie contain anything else than the user name?<
نوشته شده در
Forum Admin
HuwR
مطلب: 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<
 
شما باید یک متن وارد کنید