Hi,

With existing implementation org.wso2.carbon.ui.CarbonSecuredHttpContext
prevent appearing main login page if request comes from a page name which
ends with ajaxprocessor.jsp suffix. I think this is because if we redirect
to the main page it will get load to the part of the exiting frame.as we
are using jQuery("#id").load(...) for this. I could able to handle this
scenario with callback function of that load() function. I changed the
logic to send "Unauthorized" as the responseText if session is invalid
.Then in the JS side we can simple check the responseText and set location
to login page.

With help of this implementation we can provide user friendly UI
experiences if session has expired.

Thanks,
Shameera.

-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com <[email protected]> , shameera AT
apache.org<[email protected]>
*
*phone:  +9471 922 1454*
*
*
*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter     : *https://twitter.com/Shameera_R
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to