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

Phase Error I can't seem to find :(`
Hey guys, I can seem to find my phase error on this. I am getting this error

[error]
Pars

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

Warehouse Management
Hi,

On our system, we have two storage locations ( A and B ) where A is the main factory

Upload file!
Ok i have a form..
Code: <form name="form1" method="post" action=&quo

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

PHP Error
On my .php page I have a drop down box that has several names in it. When a user clicks the name &am

scandir clients directory
hi,
how can i scandir the clients directory? i need a script that when i click a button it will u

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

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