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

mysql_query returning boolean instead of mysql ressource
Hi,

I seem to have a weird issue with the php command mysql_query. I pass 2 arguments the que

styling a RadioButtonList
HiI need to have a radio button and close to it, its lable, then a space then another set of those.

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the sam

reading partial code from external site
Hi,

I am trying to write a script for my website to get an article from an external website.

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

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

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