FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Use og FUDForum Cookies
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Use og FUDForum Cookies [message #28600] Tue, 01 November 2005 16:50 Go to next message
mnemonic is currently offline  mnemonic   Denmark
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 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Anonymous User Blasting our forum
Next Topic: How to remove Private Messages?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:59:33 GMT 2024

Total time taken to generate the page: 0.02673 seconds