Solved

effect when use session var?

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

726 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