I can't see how reading a cookie from the request is really going to be much
quicker than reading from a text, if anything it will be slower as its
passed through at every request (although if the browser caches the
cookie...).

I think you're main problem is the amount of information you are trying to
persist, perhaps rows in a db might help, but I doubt it.

--
  Andy McKay, Developer.
  ActiveState.

----- Original Message -----
From: "Purcell, Scott" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 6:41 AM
Subject: Cookie vs Text File For State


> Hello and Good Day,
>
> I have a question about holding state. I have a large-scale application
(web
> based), and I use a uniquely identified text file to keep track of the
user
> as he surfs my site. As the product gets larger, so does this state text
> file: (below is an actual text file). So what occurs here is that I put in
a
> hidden number that correlates with the below text file. And each time the
> user does a submit and begins a session, I read the below file, put it
into
> a hash and off we go again.
>
> My problem is that I am starting to have some speed issues. I am wondering
> if a "Cookie" would be faster, and if it is, is the below data too much
data
> for a cookie.?
>
> I understand what a cookie does, but I have never created one. So if a
> cookie may be the best way to go, with this large amount of information,
> would you tell me if the cgi.pm module is best for this, or how I should
> possibly approach this challenge, or just stay my course with the text
file.
>
>
> Thanks a lot, I appreciate any input.
> Scott Purcell
>
> ########## STATE FILE BELOW #########
>
> text file:
> OT_ART208_HolidayApprov: N
> OT_Art209a_Valentines: N
> OT_Spring009: N
> OT_TV006J: N
> OT_TV008_AllSeas: N
> OT_TV010_Easter: N
> access: 3
> annotate: N
> approval: Y
> autoapprove: N
> canupld: F
> clipboard:      13438
> crop: Y
> csremail:
> customer: otc
> dimunits: in
> dropndrag: N
> eforms: Y
> encpasswd:
> d02f42d0510359476256e377d9925b7def78fd4aa52de999d724d646e11fbeba58
> group: OTC_Studio_Admin_Apv
> login time: Nov 8 15:34:37
> mconverter: N
> mode: icon
> no_cols:
> no_rows:
> pmanager: N
> portfolio: N
> profile: OTC
> report_count: 1
> report_dblist: /DISK2/VBank/DataBases/STUDIO/ot_art209a_valentines.dbf
> report_qstr: ('45_1730'$UPPER(FILENAME))
> selects: N
> serversid: aslechta_3008643_0
> superlb: N
> thumbqual: faster
> thumbsize: medium
> user: aslechta
> userrecordno: 337
> xport: N
> zoom: Y
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to