| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| document.cookie | |
|---|---|
| Tweet Topic Started: Sep 25 2005, 01:17 PM (407 Views) | |
| Epsilekt | Sep 25 2005, 01:17 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Okay, people keep saying that my scripts that use cookies only last until your browser is closed. I investigated. They are correct. Here is the code that I use when I want to set a cookie. What am I doing wrong?
Before the expiration date was just fake, but I grabbed a real one, and I made sure it existed. I don't understand what I'm doing wrong. QuirksMode uses the same cookie format as I do in their cookie tutorials, are they wrong, or am I just doing something incorrectly? I figured it out. You have to have a new Date() format of expiriation. Otherwise, it's equal to delete when the browser closes. Is this true? Do you really have to have a whole drawn out date like this one below?
|
![]() |
|
| SyKo | Sep 25 2005, 01:31 PM Post #2 |
![]()
aka godman123
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Your Javascript skills cease to amaze me. |
![]() |
|
| Epsilekt | Sep 25 2005, 01:42 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks, meanie. <_< I just realized what I've been doing wrong my whole life... <_< expires:... Jesus. It's suppose to be expires=... <_< And oh, look. The cookies are working now. <_< |
![]() |
|
| TK3+ | Sep 25 2005, 07:33 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Calm down. |
![]() |
|
| Epsilekt | Sep 26 2005, 06:00 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
... Don't worry, I was while posting that, and still am.
|
![]() |
|
| TK3+ | Sep 26 2005, 06:53 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You were while? O_o |
![]() |
|
| Epsilekt | Sep 26 2005, 07:16 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yes, I was. Show me how you think I wasn't. |
![]() |
|
| TK3+ | Sep 28 2005, 11:51 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What does it mean to be while?
|
![]() |
|
| Multikill | Sep 29 2005, 01:48 PM Post #9 |
![]()
SLAYER EATS PLATIPUS?!?!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
He was calm while posting that. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
10:45 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)





10:45 AM Jul 11