View Full Version : Cookie lost after window.location.href ?

5 Aug 2010, 11:09 PM
there are two html files : login.html and index.html.

In login.html: I use Ext.Ajax.request to verify user logging in with http handler in Asp.net, then i write something like this:

var cp = new Ext.state.CookieProvider();
window.location.href = 'index.html'; then the page redirected....

While in index.html :

var cp2 = new Ext.state.CookieProvider();
var username = cp2.get('usr');this works fine in IE8 but *username* was always undefined in IE6 or IE7.:(

Is there something I'm missing here?

thank you for any reply. ;)