>> Does IE6 limit somehow/somewhere the number of cookie variables I can
>> create and store? The following code snippet successfully creates 24
>> cookie variables when run in FireFox, but in IE6 it is limited to 20. I
>> can provide the full code with HTML/Javascript if anyone wants to test
fo
[EMAIL PROTECTED] wrote:
Does IE6 limit somehow/somewhere the number of cookie variables I can
create and store? The following code snippet successfully creates 24
cookie variables when run in FireFox, but in IE6 it is limited to 20. I
can provide the full code with HTML/Javascript if anyone wa
Al wrote:
Can't get a cookie to set. Below is the code near the file top BEFORE
any html output.
$_POST['prefs'] comes from a hidden field in the middle of the html output.
$_POST['filter'] comes from a select option.
A Submit button closes the page and refreshes it.
print_r($_POST) shows $_
did i say it? sorry, i mean load the page in your customer browser.
the code you give simple test stored cookie, which might be blocked by
browser. however browser blocks stored cookie might allow session
cookie, they are not stored so are less insecurity.
bad thing is your customer have some ant
n.g. wrote:
save below as testcookie.php, request it from your browser twice, what
do you get at 2nd time?
On 11/22/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
Anyone have any suggestions? I'm still stuck.
thanks,
kgt
Kristen G. Thorson wrote:
I'm having problems with a
save below as testcookie.php, request it from your browser twice, what
do you get at 2nd time?
On 11/22/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
> Anyone have any suggestions? I'm still stuck.
>
>
> thanks,
> kgt
>
>
>
> Kristen G. Thorson wrote:
>
> > I'm having problems with a custo
I am running php 5.0.1 on NT. I have a small test script as shown below
setcookie('cat','large',time()+3600);
setcookie('dog','small',time()+3600);
The outcome of this script is that only the LAST cookie is successfully
stored.despite having a different
name. Is this because they are both
Michael Purdy wrote:
Folks
I am running php 5.0.1 on NT.
I have a small test script as shown below
setcookie('cat','large',time()+3600);
setcookie('dog','small',time()+3600);
The outcome of this script is that only the LAST cookie is successfully stored.despite
having a different
name. I
I would suggest (haven't tried to write code in details) to associate a
random number in a variable each time you send a cookie (for new cookies
anyway) and store the key (randomvariable<->cookie) ina database. You should
be able to verify the user at next connection verifying the matching key.
"
> [snip}
> > As well as much harder for AOL subscribers (whose IP's change per-request)
> > to use the site.
> [snip]
>
> WHAT?? Are you sure of this? AOL really breaks internet browsing this
> much? Sorry, I can't believe this. If this was true, many things would
> break.
Not really -- HTTP is st
Paul Fierro wrote:
On 06/14/2004 1:02 PM, Justin Patrin <[EMAIL PROTECTED]> wrote:
As well as much harder for AOL subscribers (whose IP's change per-request)
to use the site.
WHAT?? Are you sure of this? AOL really breaks internet browsing this
much? Sorry, I can't believe this. If this w
Marek Kilimajer wrote:
Justin Patrin wrote --- napísal::
[snip}
As well as much harder for AOL subscribers (whose IP's change
per-request)
to use the site.
[snip]
WHAT?? Are you sure of this? AOL really breaks internet browsing this
much? Sorry, I can't believe this. If this was true, many thin
On 06/14/2004 1:02 PM, Justin Patrin <[EMAIL PROTECTED]> wrote:
>> As well as much harder for AOL subscribers (whose IP's change per-request)
>> to use the site.
>
> WHAT?? Are you sure of this? AOL really breaks internet browsing this
> much? Sorry, I can't believe this. If this was true, many t
Justin Patrin wrote --- napísal::
[snip}
As well as much harder for AOL subscribers (whose IP's change
per-request)
to use the site.
[snip]
WHAT?? Are you sure of this? AOL really breaks internet browsing this
much? Sorry, I can't believe this. If this was true, many things would
break. I know
Robert Cummings wrote:
On Mon, 2004-06-14 at 14:02, Justin Patrin wrote:
[snip]
As well as much harder for AOL subscribers (whose IP's change per-request)
to use the site.
[snip]
I don't think it changes per request, but rather has the potential to
change between requests.
I still don't believe t
On Mon, 2004-06-14 at 14:02, Justin Patrin wrote:
> [snip}
> > As well as much harder for AOL subscribers (whose IP's change per-request)
> > to use the site.
> [snip]
>
I don't think it changes per request, but rather has the potential to
change between requests.
Cheers,
Rob.
--
.
[snip}
As well as much harder for AOL subscribers (whose IP's change per-request)
to use the site.
[snip]
WHAT?? Are you sure of this? AOL really breaks internet browsing this
much? Sorry, I can't believe this. If this was true, many things would
break. I know that dial-up users get different IP
> > My login script sets unique, secure, cookies that identify the user.
> > Some of my pages only display content if a secure cookie is present.
> > Is this a bad idea for secure pages with sensitive details as I have
> > heard that cookies can be faked? I am always interested in creating a
> > se
Phpmail wrote:
My login script sets unique, secure, cookies that identify the user. Some of my pages only display content if a secure cookie is present. Is this a bad idea for secure pages with sensitive details as I have heard that cookies can be faked? I am always interested in creating a secure
I bet you have some session management functions in
include('lib/sessionfunc.php');
something like session_start() that also sends out header informations,
but you can't send any headers AFTER you have started
the output for eg:
Some HTML output like:
code1 will work ok, but code2 will fail
[snip]
Can I trust every
browser to check for old cookies on startup and eliminate them? And still,
even if I can, wouldn't the cookie be intact to read on the harddrive
until
the browser is started again? I was thinking about slicing the username
and
password strings in two, and storing the halv
make sure u run a session_start(); before anything on the page
u cant access any session vars without it.
Joel
"Terry Lau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
> I want to set a cookie when I enter a text into the text field, and
it
> shows the text I sub
Cookies are loaded the next time the page is loaded. So you may have to
refresh the page to see the cookie...
or
Submit to a html page which will redirect to the page which shows cookie
value...
Hope this helps...This should work...
Lord Loh
--
PHP General Mailing List (http://www.php.net/)
>> change your code to:
>>
>> $l_cookie_expireN = (int) date('r', time() - 4000 );
>> $l_cookie_expire = (int) date('r', time() + 400 );
>> $l_cookie_expire2 = (int) date('r', time() + 400*30*12 );
>
> No, that's even worse!! Try this:
>
>$l_cookie_expireN = time() - 4000;
>$l_cookie_expir
> -Original Message-
> From: Erwin [mailto:erwin@;isiz.com]
> Sent: 08 November 2002 08:55
>
> Jack Sasportas wrote:
> > I get the following error when using a previously working cookie
> > function: expects parameter 3 to be long
> >
> > Code is below... I just don't see the difference th
Jack Sasportas wrote:
> I get the following error when using a previously working cookie
> function: expects parameter 3 to be long
>
> Code is below... I just don't see the difference then the way the doc
> uses: time() - 3600
>
> -vs- the way I did it below...
>
> Thanks !
>
> function
> f_put_co
Why don't you keep you mind ahead and use session auth
bsantos
"Meltem Demirkus" <[EMAIL PROTECTED]> wrote in message
001701c26532$ba7c8c90$5583@hiborya">news:001701c26532$ba7c8c90$5583@hiborya...
> hi,
> can anybody help me with cookies..I read the manual of php but it came
> complicat
> First I set the cookie like so:
> setcookie ("Access", "Test_Value",time()+31536000);
>
> Then I check my Cookies in Netscape and I can see that I have the
> cookie stored. But when I go to the page that has
>
> print $HTTP_COOKIE_VARS["Access"];
> print $_COOKIE["$Access"];
> and even
> print
TECTED]]
> Sent: Sunday, August 11, 2002 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Cookie array
>
> to store:
>
> setcookie ("TestCookie[0]", "zero", time() + 3600);
> setcookie ("TestCookie[1]", "one", time()
Thanx !
Dne nedelja 11. avgust 2002 18:10 je B.C. Lance napisal(a):
> to store:
>
> setcookie ("TestCookie[0]", "zero", time() + 3600);
> setcookie ("TestCookie[1]", "one", time() + 3600);
> setcookie ("TestCookie[2]", "two", time() + 3600);
>
> or
>
> setcookie ("TestCookie[one]", "1", time() +
to store:
setcookie ("TestCookie[0]", "zero", time() + 3600);
setcookie ("TestCookie[1]", "one", time() + 3600);
setcookie ("TestCookie[2]", "two", time() + 3600);
or
setcookie ("TestCookie[one]", "1", time() + 3600);
setcookie ("TestCookie[two]", "2", time() + 3600);
setcookie ("TestCookie[thr
> "Jan" == Jan <[EMAIL PROTECTED]> writes:
Jan> Hi ! How can I stoor array in to a cookie ?
Jan> Do I just define an array and stoore it in a cookie ? How do
Jan> I access the data in the array then ?
you can use serialize() / unserialize() but be careful because the
amount o
ðÒÉ×ÅÔ!
> The stuff about using time/directory is an IE bug.
> You can supply *BOTH* time and directory, but not just time.
> This is not the way the Cookie spec reads, but Microsoft never reads specs
> properly, much less implements them properly, mostly on purpose.
Not sure I am saying the tru
>> Do you remember to reload the page after the cookie is sent? (some
>> browser cant see the cookie at the page it sent but first after it
>> have been reloaded!).
>
>Actualy this is not browser issue but PHP issue
No, that's just how cookies work.
PHP can't get a cookie from the browser befo
>i simpley put an cookie with :
>
>setcookie("gfo_cms" ,$sessid , '');
That's wrong.
You should be passing a TIME in for the third argument, or nothing at all.
Also, due to an IE bug, if you *DO* pass in a TIME, you *MUST* also pass in
a non-empty path.
'/' will be fine.
So, if you want a '
My experience with cookies is really unhappy.
I've once developed a website that needed to store information.
I though hey cookies are the quicker option to hell with sessions.
Now today after all of my problems with the cookies environment i've
turned back to sessions.
Sessions can store
Johan Holst Nielsen writes:
>
>> my cookie problem is still not solved :(
>> my browser settings are correct, and the script has worked.
>> but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :(
>> does any one have an solution ??
>> thnx in advance,
>
>
> Sure about your r
> my cookie problem is still not solved :(
> my browser settings are correct, and the script has worked.
> but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :(
> does any one have an solution ??
> thnx in advance,
Sure about your register_globals = off?
please show us the so
>> Do you remember to reload the page after the cookie is sent? (some
>> browser cant see the cookie at the page it sent but first after it
>> have been reloaded!).
>
>
> Actualy this is not browser issue but PHP issue
Aah, sorry... but it doesn't matter in this case, it could be one of the
> it's not the browser or what so ever,
> i installed php 4.2.1. with apache 1.3.24 on a Redhat 7.1 server.
>
> but becuas for some kind a reason it wont work :(
>
> any body got an idea ??
try to get the cookie witgh
$_COOKIE["cookiename"];
if you have register_globals = off!
Regards,
J
Johan Holst Nielsen wrote:
>> (yes it's me again)
>> i've got an other problem.
>> i've got an login system, and it has to put an cookie, but it seems
>> he doesn't do it.
>> is it an php.ini problem ??
>
>
> Dont think it a php.ini file.
>
> First of all. Remember to set the cookie before any
> (yes it's me again)
> i've got an other problem.
> i've got an login system, and it has to put an cookie, but it seems he
> doesn't do it.
> is it an php.ini problem ??
Dont think it a php.ini file.
First of all. Remember to set the cookie before any other headers is
sent to the browser.
Do
On Wed, 10 Apr 2002, Gordon Stewart wrote:
> As far as I know - ALL cookies set by a particular server - can be read &
> re-set by any programme / process on the same server / website..
> So your ASP script could read your PHP cookies & vice-versa..
> I'm just learning PHP, & dont know cookies as
Scott St. John <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have developed a security application for our intranet that handles a
> user login. It writes values to a cookie and uses that to verify them on
> the intranet sites until the sessions expire.
>
Not possible, read the manual page about setcookie:
www.php.net/setcookie
There's a 'common pitfall' entry saying so.
Don't know why. Maybe the cookie is only written to user's disk after the
page is fully loaded, maybe for security reasons.
--
Julio Nobrega.
Um dia eu chego lá:
http:/
Hi all,
Perhaps some one can help me.
If I send a cookie like
setcookie(+ACI-cookie+AF8-agtpasswd+ACI-,+ACQ-form+AF8-agent+AF8-pass, time()+-1200,
+ACI-/+ACI-)+ADs-
it does not work on the terminal which has a new version of windows 2000 and with IE6.
The browser does not store the cookie.
wow sessions and cookie on the same page? why dont you just use one or the
other? I pref sessions. never the less.
your not setting the exp, path, or domain in your setcookie() you must do
all those.
setcookie('name', 'chris lee', time()+84700, '/',
'www.mediawaveonline.com');
--
Chris Lee
I know this isnt answering your question, but skip cookies and goto
sessions, easier to work with.
now the answer to your question, you need to set the domain and path on your
setcookie()
setcookie('name', 'value', $exp, '/', $SERVER_NAME);
--
Chris Lee
[EMAIL PROTECTED]
"Steve Osborne"
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hi.
>
> what is cookie??
>
> thanks much.
what the... oh its you again.
I am too tired to give you the complete setup. Here is the short term
explanation. Read the links below for more info.
> Could I expire a cookie on a determinate date?? I mean tell the cookie
> that will expire on 17/08/2001...
Unless I'm missing something, that's trivial using:
http://php.net/manual/en/function.setcookie.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
> Hi, I have a problem with setting cookies...I am able to set cookies and
> retreive the information when using IE but not netscape. I'm not totally
> sure what the problem is. Here is the syntax that I am using, any
> suggestions are welcomed.
>
> $cookiedata = "Mmmm";
> $time = mktime()+900;
>
Try adding "/" after the time argument to SetCookie.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message --
ednesday, July 11, 2001 1:58 PM
Subject: RE: [PHP] Re: Cookie Expiry Dates?
> you probably mean
> $cookie_expire = time() + 86400 * 365;
>
> > -Original Message-
> > From: James Holloway [mailto:[EMAIL PROTECTED]]
> > Sent: 11 iulie 2001 16:02
> > To: [EMAIL
you probably mean
$cookie_expire = time() + 86400 * 365;
> -Original Message-
> From: James Holloway [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 16:02
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Cookie Expiry Dates?
>
>
> Hi Jeff,
>
> Yes, use
Hi Jeff,
Yes, use time()
Example 86400 seconds in a day. 3600 in an hour. Use some basic
maths:
$cookie_expire = time() * 86400 * 365; // Sets cookie for a year (365 days).
James.
"Jeff Lewis" <[EMAIL PROTECTED]> wrote in message
006101c10a08$874f93c0$76a1a8c0@LEWISJCIT">news:006101c10
At 11.08 -0800 01-01-29, Eugene Yi (InfoSpace Inc) poked the keyboard
as follows:
>I set up a cookie using the following command and it works fine under IE but
>not in Netscape. Am I doing something wrong?
>
>setcookie("mycookie[1]",$domain,"","/","mydomain.com");
>
>Please help me. Thanks much
56 matches
Mail list logo