[Geoserver-devel] Login to geoserver using rest api

I am trying to login geoserver by sending request to
http://<domain>:7080/geoserver/j_spring_security_check. I got a session id
from the response and use the session to login by
http://<domain>:7080/geoserver/web/;jsessionid=<SESSIONID>?&wicket:bookmarkablePage=:org.geoserver.web.data.store.StorePage.
I could able to login to geoserver successfully. After this when i click
layer preview, again it is asking for username and password. Is there any
way to fix this?

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html