jkewlo Posted July 6, 2008 Share Posted July 6, 2008 hey everyone session are whopping my arse. i know that i have to start and then assign a session session_start(); $_SESSION['username'] = @$_GET['username']; but when i try to call my session say for Welcome: <? echo "". $_SESSION['username']; . "" ?> it does not show anything at all so i need a good site i mean that really gets into sessions and how it work. any good links? Link to comment https://forums.phpfreaks.com/topic/113468-good-understanding-on-sessions-and-how-they-work/ Share on other sites More sharing options...
corbin Posted July 6, 2008 Share Posted July 6, 2008 You need session_start() at the top of every page that uses a session, not just pages that set session variables. http://www.phpfreaks.com/tutorial/sessions-and-cookies-adding-state-to-a-stateless-protocol is a good session tutorial. Link to comment https://forums.phpfreaks.com/topic/113468-good-understanding-on-sessions-and-how-they-work/#findComment-583030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.