Solved

effect when use session var?

Posted on 2002-05-07
2
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.  …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 dynamically set the form action using jQuery.

724 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