[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] A Question About Using A Php User Class And Session Variables
From: 80.177.120.119
Date: 2014-08-22 8:04:59
Message-ID: E7.93.09530.3B9F6F35 () pb1 ! pair ! com
[Download RAW message or body]
"dealTek" wrote in message
news:8197C17B-AA6B-441E-8C86-5635AFE63606@gmail.com...
>
>
>On Aug 21, 2014, at 9:50 AM, Stephen <stephen-d@rogers.com> wrote:
>
>
>>>
>> This really is not a class issue. When you call the class to determine
>> the record ID of the user, you will save it in a variable. Probably
>> created by calling the class to instantiate the variable.
>
>OK Thanks for the help. So forgetting about the class issue
>
>Assuming that site will need to display the fields separately on different
>pages (just first name on some - full info on others etc.).....
>
>Do you recommend setting session vars after the primary query for each of
>the user fields like:
>
>$_SESSION['first'] = "joe";
>$_SESSION['last'] = "smith";
>$_SESSION['phone'] = "212 111 2222";
>
>etc. ?
>
>Or might I set a session user var like...
>
>$_SESSION['thisuser'] = array('joe','smith','212 111 2222');
>echo 'show last name- '.$_SESSION['thisuser'][1].'<br>';
>
>is there a customary way to do this?
There is no "customary" way. You do whatever works for you.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic