Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

binary cookie serialization

Status
Not open for further replies.

jaydakiss

Programmer
Mar 5, 2003
1
US
Hi my company is strictly against using session/application leve variables for maintaining state across pages. Which means that passing off values from pages to other pages (like signup proces) becomes difficult.

I was thinking of creating objects that hold properties (text box values) and serializing that object to a cookie.

But a few questions. Can i do that? it will be a cookie based solution with no hits to a db or session objects.

Also, how much data can a cookie file hold, is it 4KB? If so i heard binary serialization is pretty compact, so that might be enough space to store certain basic objects.

If this can be done, does anyone have an example where i can serialize an object to a cookie using binary serialization? if so, sample code will help.


thanks jay
 
>> Hi my company is strictly against using...

well if you don't know the "reason" you might find yourself in violation of the policy by writing your own cookies since their policy might really be against "cookies" and they just worded it wrong.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top