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

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

Insert Failing.
Hey,
I am making a Sign up page for a website, but the insert query into the Database does not se

Get last modified date of web page
Hai All,

In php how can i get last modified date of a give web page . I have tried to g

PHP submit form script causing blank page
Im trying to submit a form using this script, however nothing shows up on the page, does anyone know

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

a dificult string search
Hi I don't know a way around this. I want the user to input a password, but to make it a bit complca

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

$GPRMC and NMEA how to extract from report
Hi There,

Im a little bi lost and not sure where to start with this one, ive got a small gps

Why is my row count 0?
Here's the MySQL query i'm running. It basically pulls data from 2 tables based on some data passed.

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