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; The session data is stored on the server, and the session id is stored on the server and the client-...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

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

The session data is stored on the server, and the session id is stored on
the server and the client-computer. So you can't mess with the
sessions-vars unless you have control on the server.


"Xizor" <nope@nope.com> wrote in message
news:YeXXa.74343$YN5.55755@sccrnsc01...
> I have a PHP page that checks to see if the user is logged in every time

it
> is loaded. It does this by each time checking two session variables (one

for
> the username and one for the password) against a MySQL database. If it
> checks out OK, then the PHP does stuff, if it doesn't then it doesn't do
> stuff.
>
> 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. Then again, either way it doesn't seem safe. Anywho,
> is it fine to do it the second way, or better the first way?
>
> Thank you.
>
>



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 08:44 PM.


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