PDA

View Full Version : Ext.ux.CleanCookieProvider



Saeven
8 Aug 2007, 11:21 AM
Not a big feat by any means, this extension permits the clean use of cookies (no prefix as is otherwise added by Ext's CookieProvider). I thought this might help some of those that didn't want to repeat the task!

Here it is, simply include and use. Usage is the same as with Ext.state.CookieProvider

sample


<script type="text/javascript" src="ext/Ext.ux.CleanCookieProvider.js"></script>
<script type="text/javascript">
var cp = new Ext.ux.CleanCookieProvider({
expires: new Date(new Date().getTime()+(1000*60*60*24*30)), //30 days
domain: "yourdomain.net"
});
</script>


(built atop SVN version 804)

Enjoy!
Alex