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

How to sum these output values
Hi

I need sum the month totals
SELECT region_name, area_name ,SUM (CASE WHEN S

Calender Not Opening
The following code is not loading the javascript calender in another window. It's not doing anything

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Small problem with image resize script
Hi!

I am a little bit new to php and I have an issue installing an image resize script I down

browse folder only
hi,
is there a way i can browse or get the directory or folder only and not the file?
i just w

Why does my php page download images over and over
Can anybody please explain to me why my php page keeps downloading the images and other items every

ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history

values not being entered into table
hi. I;ve created a form, so that when a user enters data into it, it gets added to a table in a data

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