Home »
FUDforum »
How To »
Use og FUDForum Cookies
Use og FUDForum Cookies [message #28600] |
Tue, 01 November 2005 16:50 |
mnemonic
Messages: 19 Registered: November 2002
Karma: 0
|
Junior Member |
|
|
Hi.
I would like to use the Forum login to perhibit user from browsing the other parts of my webserver until the login to the Forum.
I know how to work with cookies, but I am not sure how to check that the user session cookie is valid.
My ideer is to check if they have a forum AWSESSIONID cookie and check if it is valid on all other pages, and if it is not I will redirect them to the forum.
Please help me implement this.
How do I check that the cookie is valid?
|
|
|
Re: Use og FUDForum Cookies [message #28605 is a reply to message #28600] |
Tue, 01 November 2005 21:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
FUDforum's cookie has a value in it which is the user's session, you can query the sessions table with this value and see if it matches and entry there and if the value of the user_id field is <2000000000 ;
FUDforum Core Developer
|
|
|
Goto Forum:
Current Time: Tue Nov 26 16:07:45 GMT 2024
Total time taken to generate the page: 0.02368 seconds