The way I understand things, cookies must be printed before the header is returned (though this may have changed in HTTP/1.1, anyone?) In which case setting a cookie from within an SSI non-javascript is not possible.
A cookie is just specifically formatted text being printed before the Content-type: text/html header in which case if you run it like a CGI then you can control when the header is printed (aka after your cookie print) however, with an SSI I don't believe you can control the header being printed, and therefore your cookie will always be printed post header...which won't work. You could probably control this sequence of events in mod_perl, but that is beyond my mod_perl experience... IIS handles this by buffering the response until essentially an EOF which is why it *might* work on windows in IIS, but this buffering causes other problems.............. http://danconia.org Octavian Rasnita wrote: > Hi all, > > I have an SHTML file and I want to set cookies for it. > > Is this possible? > > I've tried to use server side includes to set a cookie using that script > used as SSI but it doesn't set the cookie. > The script sets the cookie if it is not included in an html file, but if it > is, it doesn't want to collaborate with me. > > The cookie should be generated dynamicly, so I can't use Javascript to > generate cookies. > > Have you any idea how to generate and read cookies from an SSI? > > > Thank you. > > Teddy's Center: http://teddy.fcc.ro/ > Mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]