Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-2006, 10:20 PM
Junior Member
 
Posts: 6
Red face how to read cookies ???

Hi friends,
Eventhough it is not related to zimbra , i am expecting good response from you.
I tried to read cookie by using javascript , having the code as follows
<html>
<head>
<script language="JavaScript" type="text/javascript">

function ReadCookie(cookieName) {
var theCookie=""+document.cookie;
var ind=theCookie.indexOf(cookieName);
if (ind==-1 || cookieName=="")
alert(ind);
var ind1=theCookie.indexOf(';',ind);
if (ind1==-1) ind1=theCookie.length;
return unescape(theCookie.substring(ind+cookieName.length +1,ind1));
}
</script>
</head>
<body onload="ReadCookie(ZM_AUTH_TOKEN)">
</body>
</html>

coookie name is ZM_AUTH_TOKEN , nothing happened !
so let me know the solution and where i have done mistakes and what to do?
Thank you.
Regards,
selvi.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.