Solved

effect when use session var?

Posted on 2002-05-07
2
195 Views
Last Modified: 2006-11-17
What would happen if I have large amount of session var ~500K?
+ Waste memory on client side?
+ Waste memory on server side?
+ Slow down the program?
+ Waste bandwidth?
Which one may happen? Basically, I want to know how PHP stored session. Thanks.
0
Comment
Question by:quanghoc
2 Comments
 
LVL 5

Accepted Solution

by:
dkjariwala earned 150 total points
ID: 6996608
By default PHP stores session in a file. This session files goes in to directory specified by session.save_path in php.ini.

Alternatively you can use DB to store session info.
Check this article. http://www.phpbuilder.com/columns/ying20000602.php3

Now 500k is not that large. But still to answer your question you can say,

- Client side you dont have to worry cause PHP is concerned on server side only.

- Memory, yes but not that much considering that 500k is not that huge.

- Yeah.

- Depends, are you passing this 500k worth of info back and forth from server/client ? Then yeah it would consume, Otherwise not.

JD

0
 
LVL 1

Author Comment

by:quanghoc
ID: 6997754
That's it. Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHPStorm debugging issues 1 45
send post values 7 26
What does this formatting equate to? 7 10
How to obtain the string from a PHP StdObject ? 6 20
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question