Re: Session Security Question

This is a discussion on Re: Session Security Question within the PHP Language forums, part of the PHP Programming Forums category; "Xizor" <nope@nope.com> schrieb: > To me, checking against the database each time the page ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-06-2003
Matthias Esken
 
Posts: n/a
Default Re: Session Security Question

"Xizor" <nope@nope.com> schrieb:

> To me, checking against the database each time the page is loaded seems
> unfriendly to the CPU. It seems that it would make more sense to set a third
> session variable the first time the user logs in to true and then check to
> see if that variable is true. I'm new to sessions, and to me, I can't quite
> tell if this is safe.


It's safe. Please make sure that you use a variable like
$_SESSION["login_ok"] instead of relying on activated register_globals
and accessing the data in $login_ok.

Matthias
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0