Hi, The problem is from the jaggery side we cant identify the situation of unauthorized. So we cant identify when cookie is not valid. So what now we are trying to do is if a service call comes after a certain time (Which would be configurable) we will authenticate again and we will update our cookie. So if a server restarted either user needs to log-out and log in or he has to wait for the time until we refresh our cookie. Actually the proper solution would be to catch the unauthorized status and retry with new cookie but in jaggery side we cant identify that as I mentioned earlier. And we decided to go with this after having a chat with nuwan.
Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, May 2, 2013 at 11:26 AM, Ajanthan Balachandran <[email protected]>wrote: > > > > On Thu, May 2, 2013 at 11:08 AM, Danushka Fernando <[email protected]>wrote: > >> Hi all, >> I am currently working on APPFAC-876 - Use the cookie returned by Basic >> Auth. I currently have a fix and I have to test it in a dev setup. After >> test it I will commit the fix. >> >> Since we are using several servers we cant use same admin cookie as we >> have previously tried. So I am saving the cookie with respect to the server >> url. So the service call will authenticate once for the particular server >> and will save the admin cookie. This will make the system faster since we >> wont login for each and every service call. >> >> What will happen if session/cookie expires or one of the server is > restarted ? > >> Thanks & Regards >> Danushka Fernando >> Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > ajanthan > -- > Ajanthan Balachandiran > Software Engineer; WSO2, Inc.; http://wso2.com/ > email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497 > blog: http://bkayts.blogspot.com/ > > Lean . Enterprise . Middleware >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
