php session max size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

php session max size

Post by phpdevuk »

Morning, probably a stupid friday morning question, but does anyone know what the maximum size is I can put into a session variable? I'm thinking reading data in from a file and storing it in a session. My guess would be its probably the same as the maximum memory assigned to php, anyone know?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

I can't remember for sure, but if memory serves, you are right.
But may I ask why can't you hold the file path in the session instead?
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

Post by phpdevuk »

good question, not entirely sure on the answer all I know is someone asked me for session max size in relation to reading a file in and storing it in a session, couldn't find any useful guides to it so figured i'd ask.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Last I checked there was no limit specifically imposed.
Post Reply