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

WM transfer order: confirm different batch than proposed by system
Hi folks,

following scenario: we have a full WM with mixed batch numbers allowed in stora

POST into Array problem
Hi Chaps,

I have a repeat region, displaying rows of data: jobid, fromtable, translatorcharge

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

do while...woes
I'm sure this is childsplay but it is stumping me, everytime i try what I think would make this work

Re-Order by ID Number
I have a cms set up for inputting an image, thumb, title, pdf, and eps. When input the database ass

Session variable help
I'm having a very troubling issue. Maybe I'm just looking over something but I have looked at the co

Gantt Chart Tool
Does anyone know of a good free gantt chart creator tool

Thanks

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

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