22, November 2008

Cookie Question - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Cookie Question
« previous next »
Pages: [1] Print

Author Topic: Cookie Question  (Read 702 times)
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« on: Apr 25, 2006, 05:56:56 AM »

I was going through the v1.88 code as I modify my current v1.82 installation for update. This was something that I had to change from the start, but was just reminded about it again.

Just curious as to why your cookie statement in the db_config won't work for me.
define("COOKIE_PATH", APPLICATION_PATH);

What does work is
define("COOKIE_PATH", "");

Thanks... Dan
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1523
6847 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #1 on: Apr 25, 2006, 06:18:29 AM »

Well you could set the define APPLICATION_PATH to be "" too


Last blog : Site of the Month - August 2007
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« Reply #2 on: Apr 25, 2006, 08:13:20 AM »

Sorry, dumb question. That's right I moved the login page to the root. I was having trouble getting things running with the Class_Path so I just bypassed it.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Apr 25, 2006, 08:21:53 AM »

Because you are using the application path in other cases it's better to set this var like before;

define("COOKIE_PATH", "");
or
define("COOKIE_PATH", "/");

remember the cookie is used only to remember the last login, all other function are session based


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2356
Tags : cookies Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Cookie Question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 10:25:32 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.741
Total Topics: 7.651
Total Members: 4.398
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: egseopro

43 Guests, 3 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.