<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001014" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001014</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-cookies#comment-1004309</link>
    <description> &lt;p&gt;thx  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/wink.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Thumbs up or down ratings of the best and worst ways to make $$$ on the net. &lt;a href=&quot;http://www.birminghamnet.com/search-engines/resources/webmaster_tools/&quot; class=&quot;bb-url&quot;&gt;CLICK 4 CASH!&lt;/a&gt; from Affiliate Programs and Ad Networks&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 11 Mar 2000 13:22:00 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1004309 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-cookies#comment-1004308</link>
    <description> &lt;p&gt;It&#039;s not that complicated  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/biggrin.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
print &quot;Set-Cookie: name=&quot;player&quot;; value=&quot;Someone else&quot; expires=1 Year; path=/; domain=domain.com;&quot;;
[/code]

I havn&#039;t tested that so you might want to. But you get the basic idea. 

And that should be printed before Print &quot;Content-type: text/html\n\n&quot;; so it will be sent as an HTTP Header and not text to the browser.

If you want to read the cookie I made a little something that would help you.

&lt;BLOCKQUOTE&gt;code:&lt;pre&gt;
sub getCookies {
	local(@rawCookies) = split (/; /,$ENV{&#039;HTTP_COOKIE&#039;});
	local(%cookies);

	foreach(@rawCookies){
	    ($key, $val) = split (/=/,$_);
	    $cookies{$key} = $val;
	} 

	return %cookies; 
} 

%cookies = &amp;getCookies;
[/code] &lt;/pre&gt;&lt;/blockquote&gt;&lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Sat, 11 Mar 2000 00:38:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1004308 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-cookies#comment-1004307</link>
    <description> &lt;p&gt;I think that cookies can be edited and still used if you can find the correct one you need.&lt;/p&gt;
&lt;p&gt;I suppose you could do somthing like convert the $name in the cookie to it&#039;s ascii value (numbers) which would make it harder to edit.&lt;/p&gt;
&lt;p&gt;Try somthing like this:&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
$name = &quot;franky&quot;;
#Making the string into it&#039;s ascii value
foreach $char (split //, $name)
{
	$char = ord $char;
	if(length($char) == 2) {$char = &quot;0$char&quot;;}
	$newname .= &quot;$char:&quot;
}

print &quot;$name is now $newname\n&quot;;	

#Making the string back into it&#039;s character value
foreach $chars (split /:/, $newname)
{
	$chars = chr $chars;	
	$newname2 .= $chars;
}
print &quot;$newname is now $newname2&quot;;
[/code]

The top part will convert the $name to it&#039;s ascii value, and the second part will convert the ascii value back to the characters.

------------------
&lt;strong&gt;Recycling one glass jar, saves enough energy to watch T.V for 3 hours.&lt;/strong&gt;

[This message has been edited by robp (edited 10 March 2000).] &lt;/pre&gt;</description>
     <pubDate>Fri, 10 Mar 2000 22:08:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004307 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
