Search found 5 matches

by luna80
Mon Sep 10, 2007 1:34 am
Forum: PHP - Code
Topic: I can't expire a cookie
Replies: 4
Views: 816

feyd wrote:Where (physically) is the login page relative to the logout page?
in the same place (same folder, if is that do you mean)
by luna80
Sun Sep 09, 2007 12:08 pm
Forum: PHP - Code
Topic: Load a page dynamically
Replies: 4
Views: 462

Thanks luna80 for your help. But..... Do you mean include a file or page in your first point??? no... in the action of the button's form you put a page, in this page you put the code I show you in my first response. I show you the complete code: example for the page with the button: <form id="...
by luna80
Sun Sep 09, 2007 10:57 am
Forum: PHP - Code
Topic: Load a page dynamically
Replies: 4
Views: 462

I think there are more than a solution... One possiblity is that when you click the button you always call the same page with a parameter that tell which page you want to call and in this page you put a redirect line. Supposing you pass the parameter "page_name" with the GET method, in the...
by luna80
Sun Sep 09, 2007 9:46 am
Forum: PHP - Code
Topic: I can't expire a cookie
Replies: 4
Views: 816

feyd wrote:Are these done in separate files?
yes...the first is done in the login page and the second in the logout page.

do you know the problem?

thanks
by luna80
Sun Sep 09, 2007 1:16 am
Forum: PHP - Code
Topic: I can't expire a cookie
Replies: 4
Views: 816

I can't expire a cookie

Hi, I have a problem with the setcookie function: I don't know why but the cookie doesn't expire. I create the cookie with setcookie('cookie_name', $userid, time()+7776000); and I try to expire it with setcookie('cookie_name', '', time()-7200); but doesn't work. If I check the expiration date of my ...