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
Solved

effect when use session var?

Posted on 2002-05-07
2
201 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

791 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