467,188 Members | 1,434 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,188 developers. It's quick & easy.

Cookies and redirect - not setting cookie.

Hi,

I've got the following code :

if (empty($g_view_all_cookie_val)) {
$t_settings_string = "v1#any#any#any#";
setcookie($g_view_all_cookie, $t_settings_string/**
* DG, time()+$g_cookie_time_length
*/);
print_header_redirect($g_view_all_page . "?f=2");
}

I am running this on PHP, IIS5 on windows 2000 server. When I run the
page it goes into a loop, it seems that the $g_view_all_cookie_val var
never gets set. If I run the same pages on II6 on Windows XP it runs
ok. Can anyone help me?

Thanks.
Jul 17 '05 #1
  • viewed: 1707
Share:
3 Replies
On Fri, 27 Aug 2004 02:35:43 -0700, Gurtch wrote:
Hi,

I've got the following code :

if (empty($g_view_all_cookie_val)) {
$t_settings_string = "v1#any#any#any#";
setcookie($g_view_all_cookie, $t_settings_string/**
* DG, time()+$g_cookie_time_length
*/);
print_header_redirect($g_view_all_page . "?f=2");
}

I am running this on PHP, IIS5 on windows 2000 server. When I run the
page it goes into a loop, it seems that the $g_view_all_cookie_val var
never gets set. If I run the same pages on II6 on Windows XP it runs
ok. Can anyone help me?

Thanks.

Old.. obsolete code probably. RTFM.

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #2
"Gurtch" <va*************@hotmail.com> wrote in message
news:e6**************************@posting.google.c om...
Hi,

I've got the following code :

if (empty($g_view_all_cookie_val)) {
$t_settings_string = "v1#any#any#any#";
setcookie($g_view_all_cookie, $t_settings_string/**
* DG, time()+$g_cookie_time_length
*/);
print_header_redirect($g_view_all_page . "?f=2");
}

I am running this on PHP, IIS5 on windows 2000 server. When I run the
page it goes into a loop, it seems that the $g_view_all_cookie_val var
never gets set. If I run the same pages on II6 on Windows XP it runs
ok. Can anyone help me?

Thanks.


I don't see where $g_view_all_cookie_val is getting set in this code...
Jul 17 '05 #3
On 27 Aug 2004 02:35:43 -0700, va*************@hotmail.com (Gurtch) wrote:
I've got the following code :

if (empty($g_view_all_cookie_val)) {
$t_settings_string = "v1#any#any#any#";
setcookie($g_view_all_cookie, $t_settings_string/**
* DG, time()+$g_cookie_time_length
*/);
print_header_redirect($g_view_all_page . "?f=2");
}

I am running this on PHP, IIS5 on windows 2000 server. When I run the
page it goes into a loop, it seems that the $g_view_all_cookie_val var
never gets set.
Are you running PHP as CGI? If so, this could be relevant:

http://support.microsoft.com/default...NoWebContent=1
If I run the same pages on II6 on Windows XP it runs
ok. Can anyone help me?


XP has IIS 5.1; isn't Windows 2003 the only one with IIS 6.0?

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sri. | last post: by
reply views Thread by Sri | last post: by
2 posts views Thread by news.microsoft.com | last post: by
6 posts views Thread by Pete Davis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.