Firefox PHP

User login issue

Posted by anarki 
User login issue
May 30, 2016 06:45AM
Hi,

I'm creating pages and allowed registered user to do more things. I found if they are not logged in, and I will redirect them to the phorum page. If I set the redir params, they also can be send back to where they were. which was great!

but, there always is a better way. I want to use JavaScript to check there login status first, if not logged in, just popup a box (i'm using fancybox), user just simply input their user name and password without leaving this current page. However, I don't know where is the right place to set the cookie. I tried to set the cookie at the parent page, no luck. I set the cookie at the ajax server page. no luck.

Please advise!

Thanks!
Sorry, only registered users may post in this forum.

Click here to login