Forums

This topic is locked

session userID

Posted 14 Jan 2003 08:55:00
1
has voted
14 Jan 2003 08:55:00 zoe z posted:
can i session the userID?if i do,how can it be done?

Replies

Replied 14 Jan 2003 12:30:19
14 Jan 2003 12:30:19 Lee Diggins replied:
Hi Zoe,

create a session variable and assign your userID value to it, I'm assuming your pulling you ID from a DB so change the recordset reference to suit:

Session("UserID" = rsMyData.Fields.Item("userID".Value

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 14 Jan 2003 14:46:59
14 Jan 2003 14:46:59 Julio Taylor replied:
If you're using PHP, there is an automatic global called KT_Username which can be retrived as a session variable. just be sure to include the following code at the top of your page:

<?php
session_start();
?>

cheers!

------------------------
Julio

PHP | MySQL | UD4

ICQ: 19735247

Reply to this topic