Re: state?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56854
interpreted = N
texte = thanks Brian.. i was thinking about something along the lines... but since the session must expire sooner i am putting trigger for avery 5 minutes... and i write my file like [text]var1=moo[/text] [text]var2=foo[/text] ..... thanks... On Mon, 15 Mar 2004, Brian Fries wrote: > 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 a > 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: state? ( Brian Fries 2004)
  2. Re: state? ( Kalin Mintchev 2004)
  3. Re: state? ( Kalin Mintchev 2004)
  4. Re: state? ( Brian Fries 2004)
  5. Re: state? ( Kalin Mintchev 2004)
  6. Re: state? ( charles kline 2004)
  7. Re: state? ( Kenneth Grome 2004)
  8. Re: state? ( Kalin Mintchev 2004)
  9. Re: state? ( "Brian Boegershausen" 2004)
  10. Re: state? ( Kenneth Grome 2004)
  11. state? ( Kalin Mintchev 2004)
thanks Brian.. i was thinking about something along the lines... but since the session must expire sooner i am putting trigger for avery 5 minutes... and i write my file like [text]var1=moo[/text] [text]var2=foo[/text] ..... thanks... On Mon, 15 Mar 2004, Brian Fries wrote: > 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 a > 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/ 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:

Questions (1998) [WebDNA] [OT] Google redirect or not (2014) WebDNA 5.0 Enterprise Edition (2003) Time/date formatting %X doesn't work ... (1997) Re:E-mailer application times out (1998) Copy and paste text into form fields....... (2005) Where is f2? (1997) Weird problems with [SHOWIF]s (1997) New Mac Public Beta Available (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) WebCatalog/Mac 2.1b2 New Features (1997) WC2b12: Yes, Formulas.db is for real (1997) Multiple Newcarts (1996) Using Plug-In while running 1.6.1 (1997) Help! WebCat2 bug (1997) ODBC problems between webcat and filemaker pro (2001) Shopping cart now bad (1997) WebCatalog for Postcards ? (1997) Multiple 'Users.db' files not possible (1997) Help! WebCat2 bug (1997)