Is it a good practice to store user info. in sessions?


Posted on 16th Feb 2014 07:03 pm by admin

I am making a user class for my script which stores all the user information in sessions. It takes user id as parameter and gets the info from database and stores it in the session variable. I did this for easy access of data as I don't want to query database every now and then.

Did you know?Explore Trending and Topic pages for more stories like this.
Is this a good practice? If not, why?
No comments posted yet

Your Answer:

Login to answer
94 Like 43 Dislike
Previous forums Next forums
Other forums

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

import table with dependency
Hi

What is the best way to import table back which has dependency?

SQL> cre

Need help to identify this error please
:confused:Can anyone help me tell what this error message means? Maybe tell me where to look to fix

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

Deleted Delivery but material wont return
We deleted a delivery but the material its still pending.

We made a reverse goods movemen

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

DateObject and Nulls
Hi all,

I have an array mapped to a value object. One of the items in the array is a PHP Date

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

Format timestamp from mysql
When I tried this:
Code: date("m/d/Y H:i A", $row['timestamp'])
I got 12/31/1969 18:

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash