well ure "suspision on what my code does is pritty much all" and about the session...iankent wrote:it shouldn't. if you just use a normal session it will end when the browser window closes (note window, not tab in most browsers). if you use ctrl+alt+del or restart the computer or shut down the browser the session should end. if it doesn't thats a browser fault and not a PHP session fault. as far as I know this works perfectly in almost all browsers (certainly does in IE5/6/7/8, Opera, Safari, Chrome and Firefox).Goofan wrote:well i have learned by "speaking to co-workers" that $_session got alot of faults...
for exampel if i remember correct:
If u close by (go by Vtrl + Alt + Delete) and close the webbpage it will keep u loged in and u might never get back into ure login...
The exception to this is if you manually change the session expiry date to something in the future. If you do, the session becomes persistent even when the browser window is closed/computer crashes etc. but thats only if you tell it to, otherwise it shouldn't.
lots of websites use sessions to store data, its pretty much the only straightforward way to manage data during a users time on a website. without sessions it's much more difficult and can get very messy
when a user logs in you retrieve the saved_id from the database? if so, what do you do with it? it needs to be passed to the menu file as a $_GET variable, i.e. yourfile.php?saved_id=x - that way the menu file can output the saved_id in the link, which will then pass it to the other script for the SQL query. a bit of a messy way of doing it I must say.
Yes, you need to change it to <?php echo $id ?> - at the top of the menu file you get the saved_id from the URL and put it in $id NOT $row['saved_id']. Also, please read my posts carefully, I've said most of the last two paragraphs before!
i dont wanna use the session:
firstly "the rumors ive heard"
secondly im allmost finished with the code i belieave this to be my final problem (and a big one 2
third "difficulty is the way u learn" am i not correct?