Re: state?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56855
interpreted = N
texte = >> > I usually do this by assigning a session ID to the user (could be a> > [cart] value, but I usually assign IDs sequentially) and setting areading this again - any reasons for not using [cart] except theobvious - to track how many users you get with the sequentialsessions?..thanks..> > session cookie, then storing the variables I want to restore for the> > next page the user hits into a dynamically generated include file based> > on the session id, like this:> >> > [writefile path/[sessionID]][raw][text> > multi=T][/raw]var1=[var1]&var2=[var2](etc)[raw][/text][/raw][/> > writefile]> >> > If your variables may contain ampersands or equal signs, you need to> > mess with some URL/UNURL contexts to get the variables to set properly.> > You can use multiple text contexts, math contexts, or whatever to get> > your desired results.> >> > When the user hits a page, I check the session cookie and do this:> >> > [fileinfo path/[sessionID]][showif [exists]=T][include> > path/[sessionID]][/showif][/fileinfo]> >> > Then, I add triggered cleanup code that will delete old session files> > on a daily basis to avoid filling the file system. The frequency of the> > trigger and the age of the session files to delete varies based on how> > busy the site is.> >> > - brian> >> >> > On Mar 13, 2004, at 6:11 PM, Kalin Mintchev wrote:> >> > > On Sat, 13 Mar 2004, charles kline wrote:> > >> > >> I think he means more like, in PHP, ASP, ColdFusion, you can set> > >> variables with different scope, Session being one of them.> > >> > > more like php and jsp sessions. i don't now about asp and cf. they are> > > build in system based on cookies that are included within the packages> > > to> > > follow users around and also they expire at certain time so it can be> > > used> > > for user security. also you can register all kinds of variables to each> > > user session that belong only to him/her and can be called and used> > > without querying a db. they expire with the session so you don't have> > > to> > > worry about them either....> > >> > > i'm looking for the same thing like that in wc. i know it can be build> > > using the cart implementation but was wondering if somebody already has> > > something like that done...> > >> > >> > >> > >>> > >> - Charles> > >>> > >> On Mar 12, 2004, at 9:39 PM, Kenneth Grome wrote:> > >>> > >>>> On Sat, 13 Mar 2004, Kenneth Grome wrote:> > >>>>> > >>>>>> hi all> > >>>>>>> > >>>>>> has somebody developed a state maintaining system with webDNA?> > >>>>>> if yes - how efficient is it? and will the person be willing to> > >>>>> share> > >>>>>> the code?> > >>>>>> > >>>>> We all know how to identify which cart our buyers are using, what> > >>>>> else are you seeking? What exactly are you referring to as a> > >>>>> "State> > >>>>> maintaining system"?> > >>>>> > >>>> like session. session variables....> > >>>> > >>>> > >>> Session variables ... hmmm ... do you mean like cookies that are> > >>> reset> > >>> each time the same person clicks a link or form button perhaps? What> > >>> information do you need to store in your session variables? I think> > >>> you may have to build your own custom solution since everyone has> > >>> their own idea of what variables they need to store and access for> > >>> each visitor ...> > >>> --> > >>>> > >>> Kenneth Grome> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list
.> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/> >>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>> > I usually do this by assigning a session ID to the user (could be a> > [cart] value, but I usually assign IDs sequentially) and setting areading this again - any reasons for not using [cart] except theobvious - to track how many users you get with the sequentialsessions?..thanks..> > session cookie, then storing the variables I want to restore for the> > next page the user hits into a dynamically generated include file based> > on the session id, like this:> >> > [writefile path/[sessionID]][raw][text> > multi=T][/raw]var1=[var1]&var2=[var2](etc)[raw][/text][/raw][/> > writefile]> >> > If your variables may contain ampersands or equal signs, you need to> > mess with some URL/UNURL contexts to get the variables to set properly.> > You can use multiple text contexts, math contexts, or whatever to get> > your desired results.> >> > When the user hits a page, I check the session cookie and do this:> >> > [fileinfo path/[sessionID]][showif [exists]=T][include> > path/[sessionID]][/showif][/fileinfo]> >> > Then, I add triggered cleanup code that will delete old session files> > on a daily basis to avoid filling the file system. The frequency of the> > trigger and the age of the session files to delete varies based on how> > busy the site is.> >> > - brian> >> >> > On Mar 13, 2004, at 6:11 PM, Kalin Mintchev wrote:> >> > > On Sat, 13 Mar 2004, charles kline wrote:> > >> > >> I think he means more like, in PHP, ASP, ColdFusion, you can set> > >> variables with different scope, Session being one of them.> > >> > > more like php and jsp sessions. i don't now about asp and cf. they are> > > build in system based on cookies that are included within the packages> > > to> > > follow users around and also they expire at certain time so it can be> > > used> > > for user security. also you can register all kinds of variables to each> > > user session that belong only to him/her and can be called and used> > > without querying a db. they expire with the session so you don't have> > > to> > > worry about them either....> > >> > > i'm looking for the same thing like that in wc. i know it can be build> > > using the cart implementation but was wondering if somebody already has> > > something like that done...> > >> > >> > >> > >>> > >> - Charles> > >>> > >> On Mar 12, 2004, at 9:39 PM, Kenneth Grome wrote:> > >>> > >>>> On Sat, 13 Mar 2004, Kenneth Grome wrote:> > >>>>> > >>>>>> hi all> > >>>>>>> > >>>>>> has somebody developed a state maintaining system with webDNA?> > >>>>>> if yes - how efficient is it? and will the person be willing to> > >>>>> share> > >>>>>> the code?> > >>>>>> > >>>>> We all know how to identify which cart our buyers are using, what> > >>>>> else are you seeking? What exactly are you referring to as a> > >>>>> "State> > >>>>> maintaining system"?> > >>>>> > >>>> like session. session variables....> > >>>> > >>>> > >>> Session variables ... hmmm ... do you mean like cookies that are> > >>> reset> > >>> each time the same person clicks a link or form button perhaps? What> > >>> information do you need to store in your session variables? I think> > >>> you may have to build your own custom solution since everyone has> > >>> their own idea of what variables they need to store and access for> > >>> each visitor ...> > >>> --> > >>>> > >>> Kenneth Grome> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/> >>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kalin Mintchev
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Image browser / insert image (2006)
The Archives? (1999)
Re:listfiles-looking for slick solution (1997)
math on date? (1997)
Template Cache problem, bombing WebSTAR problem (2000)
No one gets my client's code for free ... (2005)
[WebDNA] =?UTF-8?B?UmU6IFtXZWJETkFdIFJlOiBbV2ViRE5BXSBSZTogW1dlYkROQV0gV2ViRE5BIHY3IHF1ZQ==?= (2011)
Navigator Parsing (1997)
How To question on setting up downloads (1997)
Mondo amounts of Mail [long] (1999)
[OT] Happy Turkey Day! (2003)
[OT] (waaaay OT) further off topic than before (2004)
WebCat2b15MacPlugin - showing [math] (1997)
Release of 2.01? (1997)
RE: 2nd WebCatalog2 Feature Request (1996)
[replaceChars] would be nice ... (1997)
Hosts (2000)
Authorizenet and expiration dates (2002)
[subtotal] and others (1997)
Dreamweaver MX (again) (2002)