Cookie trouble

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mzfp
Forum Newbie
Posts: 3
Joined: Sun Apr 28, 2002 7:31 am
Contact:

Cookie trouble

Post by mzfp »

ive downloaded a script (tforum) and been working on it for a few weeks now, however the script doesxnt seem to be handling cookies correctly, the purpose of the cookie is to track a visitor who logs in, and also allows a user to save his her password for next login.

could someone please show me how to use the SetCookie function and point any difficulties associated with using cookies on a local machine with Apache server running?
User avatar
fatal
Forum Contributor
Posts: 118
Joined: Sat Apr 20, 2002 10:47 am
Location: East Coast

Post by fatal »

SetCookie info: http://www.php.net/manual/en/function.setcookie.php

And to address the problem with runing apache on your localhost is that you might not have cookies enabled on your browser. To check do this 'Open IE - Tools > Internet Options > Advanced', i think it should be somewhere around there.
Post Reply