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

Not Inserting into DB
I can't get my Add new Division form to submit to the database. Anyone see my issue?

Code: &a

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which style

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

an interesting question
Greetings folks, got to ask an interesting question...

let say
i have created a function s

MySQL Does not UPDATE- SQLString Problem
vb Syntax (Toggle Plain Text) 1. SQL = "UPDATE sampletable SET column1 = 'C1sample1'"

word wrap in emails help needed
Hello, I understand how wordwrap works in php and have used it well before. However when I used wor

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

recrawling
Can anyone suggest me how may i know a page is updated before it is being downloaded, so that i can

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

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