473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

does refresh resend cookies?

Can't seem to get the cookies I want sent. Refreshing a page resends
all the cookies, yes? The HTML in this function should be sufficient,
yes?

function userCounterPage() {
global $cookies;
extract($config=getConfig());
$self = $self."?pageEventMiddle[]=userCounterPage&renderPageCancel=true";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\">
<html>
<head>
<title></title>
<meta http-equiv=\"REFRESH\" content=\"9; url=$self\">
</head>
<body>";

$cookies->printAllCookies();

echo "</body></html>";
}
Jul 16 '05 #1
2 4371
RG

"lawrence" <lk******@geocities.com> wrote in message
news:da**************************@posting.google.c om...
Can't seem to get the cookies I want sent. Refreshing a page resends
all the cookies, yes? The HTML in this function should be sufficient,
yes?

function userCounterPage() {
global $cookies;
extract($config=getConfig());
$self = $self."?pageEventMiddle[]=userCounterPage&renderPageCancel=true";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
Transitional//EN\">
<html>
<head>
<title></title>
<meta http-equiv=\"REFRESH\" content=\"9; url=$self\">
</head>
<body>";

$cookies->printAllCookies();

echo "</body></html>";
}

Scrap the cookies idea, not everyone has them on.
Write the info to a databse and send a session with every request

Hope this helps
RG

Jul 16 '05 #2
With total disregard for any kind of safety measures
lk******@geocities.com (lawrence) leapt forth and uttered:
I can't make sense of your idea. PHP session's simply use
cookies. If someone doesn't allow cookies then PHP's sesssions
don't work either.


Incorrect. If the user deativates cookies then PHP will pass the
session ID via the URL (in most cases, the URL re-writing seems to
break under certain circumstances)

--
There is no signature.....
Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tom Szabo | last post by:
Hi, In order to preserve some settings and avoid cookies I have thought of the following trick: I simply create an array as the property of the window: window.aList = new Array(); and...
6
by: Mark Feller | last post by:
What are best practices to check to see if a .php script is called for the first time versus a user hitting a refresh button on their browser? I am playing around with a PHP front-end to a...
5
by: John | last post by:
I have a problem with refresh. I have a contact form that sends an email when the submit button is pressed. I have a hidden variable and the code for emailing is only executed if the variable is...
1
by: achoo | last post by:
Is it possible to extend a Web service proxy so that it understands an HTTP refresh page? Explanation: * The Web service proxy was autogenerated by Visual Studio .NET 2003 from the Web...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
4
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, How can I prevent from an ASP.NET page to resend all the data again when the user press the Refresh button or F5 on the browser? Thanks in advanced, Asaf
2
by: Mark B | last post by:
I've got a "Select Language" drop-down on the top-right of the home page. When I select a new language, the drop-down fires a postback and sets a cookie and session value for "LanguageSelection"....
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hi all, i betcha here's a question never asked before ;) i have a simple web form with a gridview and a button. the button doesn't do anything but a postback. i load up the gridview from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.