Previous Thread
Next Thread
Print Thread
Rating: 10
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
This script will allow the user to view the cookie names and values as seen by the script, returned from the browser. The user may then choose to expire all cookies. (and be logged out if logged in)

1. Download attached file.
2. Unzip and upload to your .threads directory.
3. Bring script up in your browser.
4. View and/or Expire your cookies.

The file is attached.
Attachments
51395-cookiepal.zip (0 Bytes, 21 downloads)

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
VERY COOL!

Thanks Dave!
Super Simple to install!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Could place a link to the script in the registerednav.tmpl file so logged in users can clear their cookies. Or perhaps even in unregisterednav.tmpl so those users with problems could access the script also just in case they have some cookies that need fixin.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I have made a slight change to the code.

Now the script will expire directory specific and site wide cookies along with any custom cookie paths set by the admin in the config.inc.php file.

Also, if there are no current cookies the script will not display the "Expire Cookies" button.

Oh, almost forgot, I have carried the Cat variable through too.

The file is attached.

Done now.

Attachments
51410-cookiepal-2.zip (0 Bytes, 29 downloads)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I'll definitely use this hack.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks Dave,

Only one problem - if there are no cookies, the Cat$ info is not carried over.

Regards,

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
One suggestion. You might want to change:
code:
if (!$doExpire) {


to
code:
if (!isset($_POST['doExpire'])) {



That will keep the script working when Rick takes out the code in ubb.inc.php which auto-registers globals.

If the script needs to be compatible with PHP versions earlier than 4.1.0, then $HTTP_POST_VARS should be used in place of $_POST.



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)