|
Posted by Andy Dingley on 12/22/43 11:50
mfhiatt@netins.net wrote:
> I'm using a cookie on a site that works fine.
>
> When I run the files from my local hard drive, it doesn't work.
Cookies are a HTTP thing, not a HTML thing. You need a HTTP server, not
just a local filesystem.
Best way for a HTTP server is to find a tired old PC and resurrect it
running a minimal Unix and Apache. Try Ubuntu, or the ready-packaged
"minimal Unix and Apache" bundles. You'll not regret this as a web
developer, it makes deployment out to the live servers much less
troublesome. Many things are now getting more and more sensitive to
HTTP content-type etc. and although filesystems work for the basics,
they're never exactly the same environment.
If you're on a laptop and mobile, then you're probably running Windows
and you can still run a web server on there. IIS / PWS for Windows
native, or even Apache again.
Navigation:
[Reply to this message]
|