Forums
This topic is locked
User login info
Posted 11 Apr 2002 11:08:39
1
has voted
11 Apr 2002 11:08:39 kevin kevink posted:
How do you make when a user login all he see is his profile. Replies
Replied 12 Apr 2002 18:44:28
12 Apr 2002 18:44:28 Eric Kaiser replied:
You will need to query your database after the user logs in. When users login a Session variable called KT_Username is generated. You can do you query against that session variable to get the logged in users profile.
Replied 06 May 2002 23:06:28
06 May 2002 23:06:28 Márcio Machado replied:
and how can I add a new session variable?
Replied 14 May 2002 09:58:57
14 May 2002 09:58:57 Julio Taylor replied:
whenever a user is logged into your website, his username is stored in the variable KT_Username by default.
You don't need to set it, you just need to make sure that you retrieve it accordingly.
<b>NB - IMOPRTANT</b>
if you are going to be working with session variables, make sure you add the following code to the very top of your PHP file!
<?PHP
session_start();
?>
otherwise it will screw up and turn you into a spiralling alcoholic in search of truth and logic in a world of incoherently placed question marks and underscored. Or was that just me. Hmm. Time for therapy.
-- J
P.S. i killed kenny
You don't need to set it, you just need to make sure that you retrieve it accordingly.
<b>NB - IMOPRTANT</b>
if you are going to be working with session variables, make sure you add the following code to the very top of your PHP file!
<?PHP
session_start();
?>
otherwise it will screw up and turn you into a spiralling alcoholic in search of truth and logic in a world of incoherently placed question marks and underscored. Or was that just me. Hmm. Time for therapy.
-- J
P.S. i killed kenny