|
|||||
|
|
#1 |
|
|
someone told me to read and act on cookies by using javascrpt within the webpage. now in my Perl reading i came across SSI statements. i.e.<!--#exec cgi="/cgi-bin/whattimeisit.cgi"--> and i was curious why not use statements like that to read a users cookies and do a redirect if i have to. now granted, i don't know if this works, and when i get back to my programming machine i will test it. (otherwise i would have done that first) but the point is, even if it does, that's doesn't make it the right way. so i was curious...would this be considered bad? kloodge? cheesy? band-aid? etc. thanks ahead, daniel |
|
|
#2 |
|
|
> hey all, > > someone told me to read and act on cookies by using javascrpt within the > webpage. now in my Perl reading i came across SSI statements. > > i.e.<!--#exec cgi="/cgi-bin/whattimeisit.cgi"--> > > and i was curious why not use statements like that to read a users cookies > and do a redirect if i have to. now granted, i don't know if this works, > and when i get back to my programming machine i will test it. (otherwise i > would have done that first) What you will find is that you can't do a redirect from a script called via SSI. > > but the point is, even if it does, that's doesn't make it the right way. so > i was curious...would this be considered bad? kloodge? cheesy? band-aid? > etc. Personally my feeling is that if you are going to the trouble of writing a perl script, you would be better off having the script deliver the entire page and doing away with the SSI, because both incur the overhead of starting a perl interpreter and the former is much more powerful in the same way that a nuclear explosion is much more powerful than a mouse fart (for instance you can do redirects). SSI is rarely (never?) the best solution these days. Rich |
|
|
#3 |
|
|
news an.2004.11.18.19.16.00.864211@zync.co.uk...> What you will find is that you can't do a redirect from a script called > via SSI. many thanks, JUST sat at my machine (with all my code) and was about to try it...was hoping i could, but hey, that's obviosuly NOT the way to do it. > Personally my feeling is that if you are going to the trouble of writing a > perl script...... > SSI is rarely (never?) the best solution these days. many thanks for your all input daniel |