Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-30-2009, 01:27 AM PHP Sessions
Novice Talker

Posts: 6
Trades: 0
I am learning PHP sessions, and am wondering: should I connect to my user database on every page to check if the user is logged in, or is checking if the sesson exists enough? In other words, could someone exploit my website by hijacking a session?
jasgor9 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-30-2009, 05:23 AM Re: PHP Sessions
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
its fine using sessions to check a logged in user

This is normally how its done
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 09-07-2009, 08:24 AM Re: PHP Sessions
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,615
Location: UK
Trades: 1
I dont think its possible to hijack a user session considering the session itself is held on the server rather than the browser.

I normally put "most" of my users data in a session.

and then that data is enought for me to get more data using a sql query.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Reply     « Reply to PHP Sessions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.84155 seconds with 12 queries