Link to home
Start Free TrialLog in
Avatar of narmi2
narmi2

asked on

Cookie based sessions

Dear Experts,

Using start_session(); apparently creates clientside sessions by using cookies to store the data.

Is this correct?
SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2
narmi2

ASKER

That is confusing because I always thought cookies had a limit of 4kb, I created a session (just for testing purposes) which had 1mb of data and it worked.  Why is that?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2

ASKER

Ah ic, is it possible to create clientside only sessions using php?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2

ASKER

What I mean is, when I do <? phpinfo(); ?>, under the sessions section, it shows something called "session.use_only_cookies" off off.  If those are set to on on, will that give me clientside sessions only with the 4k limit?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2

ASKER

Thanks, that answered my question.