From: Saurabh Peshkar Date: 2009-03-17T19:26:03+09:00 Subject: Re: Fetching cookie??? Michael Linfield wrote: >> path where username is not required to fetch the cookie. After fetching >> i'll store it in an array and display its name and content. > > Oh ok, that's easy enough. So if you wanted to change to the cookie > directory say of "C:/Documents and Settings/username/cookies" but > "username" is not pre-defined you could use something like this: > > Dir.chdir("C:/Documents and Settings/#{ENV['USERNAME']}/cookies") > > This would use the account username that the user is currently logged > into. > Naturally, the paths would be different using *nix > > Regards, > > - Mac Thanks Mac It works, got the cookie name and content. Thanks again, Saurabh -- Posted via http://www.ruby-forum.com/.