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.

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

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Error in write byte array into document in SM58
Hi Gurus,

Getting the following error status in Transactional RFC (SM58) ..... *Error i

How to get variable value on next page
Hello friends
i am working on payentry page ..there i have this code.........

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Search with relational database
Hey,

I have quite a complicated (for me anyway ) relational database for an apartments syste

If statement help please.
Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and th

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

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