views:

6

answers:

0

Hi.
In a webapplication I use cookies for authentication. But when the browser or device accesing the webapp does only support uri-encrypted cookies, I get a problem. The normal links are updated by the browser itself, but i have some ajax functions that need authentication too.

How can i insert the uri-encoded authentication cookie into the uri i use for ajax requests? I thought of getting them from Request.Cookies, but this is empty when using uri-encrypted cookies.

Beside of this i thought of setting the cookiemode to cookie only (only for a short term solution), so a devices (iPad in this case) is forced to use normal cookies. I know the iPad can handle normal cookies, but when i add the page to homescreen, it begins to use uri-encoded cookies after a short delay. Don't know why, but it's doing it.

So i went to 'session state' configuration in IIS Manager just to see that server and page are already configured with 'Use cookies'. But the FormsAuthentication.CookieMode is UseDeviceProfile. Why is the set mode in IIS Manager not used?

Thanks for any help.