Renaming Wordpress Cookies

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Renaming Wordpress Cookies

Postby Ron Williams » Wed 21 Dec, 2005 3:32 pm

I use wordpress and need to change my cookie files name for login. How do I do this?
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
User avatar
Ron Williams
BANNED
BANNED
 
Posts: 845
Joined: Tue 25 Nov, 2003 9:47 am
Location: Cambridge, Maryland

Postby Don_HH2K » Wed 21 Dec, 2005 6:48 pm

Download your pluggable-functions.php file from (wp install dir)/wp-includes/ and open it up with a text editor (do not use Notepad, it won't work... try the MS-DOS editor if you have nothing better, like Dreamweaver or Visual Web Developer). Do a find/replace for [tt]$_COOKIE['wordpressuser_'[/tt] and change all values to [tt]$_COOKIE['#COOKIENAME#_'[/tt], replacing #COOKIENAME# with the title of the cookie you want to set.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051205 Donzilla/0.9 (WML/1.3)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], psbot [Picsearch]