Solved

effect when use session var?

Posted on 2002-05-07
2
176 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
Comment Utility
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
Comment Utility
That's it. Thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now