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 a reading this again - any reasons for not using [cart] except the obvious - to track how many users you get with the sequential sessions?.. 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:

    
  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)
> > > 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 reading this again - any reasons for not using [cart] except the obvious - to track how many users you get with the sequential sessions?.. 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:

texta,b,c,d,e (urgent) (2003) Re[2]: SSL data to/from webcatalog? (2000) Formating found categories (1997) turning every 5th line red (1998) raw field names (2001) Kill the webcat process (2000) RE: New WebCatalog Version !!! (1997) Security Issue (1997) Intermitent problem using [referrer] (1997) Sendmail (1999) Database Advice (1996) test -please ignore (2000) [WebDNA] Hosting Needs for WebDNA (2014) Max Record length (1997) Protect vs Authenicate (1997) FCKeditor (2008) Virtual hosting and webcatNT (1997) Explorer 3.0/ Access Denied! (1997) all records returned. (1997) Can you do this??? and other stuff (1997)