BabbleBoard Support Forums
What Are YOU Babbling About?
Hello Guest!  |  Home  |  Search  |  Login  |  Register
Home | Feature Ideas | Cookie Paths
Cookie Paths
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 16:46  Trackback URL

The ability to set the cookie path from the admin area would be a nice addition

Go To Top
Caleyjag



Role

Posts: 868
Joined: 22 June 2007
Location: Inverness, Scotland
Monday, Oct 22, 2007 17:39  Trackback URL

Can you explain what use that would be?

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 17:49  Trackback URL

Well as seen in my new mod, you need to edit the cookie paths to get them to work throughout the site, not just under the /forums directory.

Having the ability to easily change the paths of the cookies can allow people to use the cookies throughout their site

Go To Top
Slashman X



Role

Posts: 54
Joined: 22 June 2007

Monday, Oct 22, 2007 17:59  Trackback URL

Jonny Trackback URL

Well as seen in my new mod, you need to edit the cookie paths to get them to work throughout the site, not just under the /forums directory.

Having the ability to easily change the paths of the cookies can allow people to use the cookies throughout their site


I brought this up before, though it was done as the site wide cookie in V 1.1.1 though

Go To Top
Caleyjag



Role

Posts: 868
Joined: 22 June 2007
Location: Inverness, Scotland
Monday, Oct 22, 2007 19:32  Trackback URL

What does the path need to be to make cookies work site wide?

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 19:43  Trackback URL

With a time:
RAW CODE
setcookie("bb_name", $username, time()+3600, "/"");


Without a time:
RAW CODE
setcookie("bb_name", $username, NULL, "/"");


Logging out:
RAW CODE
setcookie("bb_name", "", time()-3600, "/"");


And instead of "/" you would have something like "$cookie_path" which could be set from the admin area.



Last edited by: Jonny - Monday, Oct 22, 2007 19:44.
Go To Top
Caleyjag



Role

Posts: 868
Joined: 22 June 2007
Location: Inverness, Scotland
Monday, Oct 22, 2007 19:48  Trackback URL

But if I set it so it's site wide already, that should remove the need to set it shouldn't it?

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Oct 22, 2007 20:02  Trackback URL

Suppose you could if you want

Go To Top
Jonny




Posts: 59
Joined: 22 June 2007
Location: Rochdale, England
Monday, Jan 14, 2008 18:05  Trackback URL

Did this never happen then?

Go To Top
Caleyjag



Role

Posts: 868
Joined: 22 June 2007
Location: Inverness, Scotland
Monday, Jan 14, 2008 18:38  Trackback URL

No.

Go To Top
 
1 Guest(s), 0 Member(s) Viewing This Topic:
 
 
 
Powered by BabbleBoard v1.1.6
All Content © BabbleBoard Support Forums