ikon Posted February 16, 2008 Share Posted February 16, 2008 My current Session Script is as follows: <?php session_start(); if(isset($_SESSION['username'])==false){ header("Location:Login/Login.php"); exit(); } ?> However, this will only work when the user logs in to initiate the "username" variable. Is it possible to use a guest session if so how can this be done? Quote Link to comment https://forums.phpfreaks.com/topic/91453-using-session-variable-if-a-user-is-not-logged-in/ Share on other sites More sharing options...
ikon Posted February 17, 2008 Author Share Posted February 17, 2008 To give you more of an outline, i want to be able to use a shopping cart without a user being logged in. Quote Link to comment https://forums.phpfreaks.com/topic/91453-using-session-variable-if-a-user-is-not-logged-in/#findComment-468530 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.