I have popup showing on click on a link on my site which shows a login form in iframe. i am able to login with popup iframe but when i close that popup, i am not logged in on main site and need to login again. is there a way so that i only need to login once, either from main site or from iframe?
-
1very strange. Are you sure that the URL of the iframe is identical with your site url? the protocols (http or https) must also be identical.– Elin Y.Commented Mar 12, 2014 at 7:25
-
4why do you use iframe for loging in to a user. Most browsers dont allow cookies to be stored for iframes. You can use modal forms module for managing login in popups.– user24595Commented Mar 12, 2014 at 7:26
-
I am showing a page on popup and this page is restricted to anonymous and some other user roles thats why i am using iframe, if a user is not logged in popup shows login form instead of page.– VikramCommented Mar 12, 2014 at 7:30
-
Ok, it was a protocol issue, i set site to open with www always with htaccess. Thanks Елин Й.– VikramCommented Mar 12, 2014 at 7:42
Add a comment
|
1 Answer
To maintain the sessions configure htaccess to run site with consistent protocol like www, https, if urls for pages are not with same protocols they login issues comes.