0

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?

4
  • 1
    very 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
  • 4
    why 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.
    – user24595
    Commented 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.
    – Vikram
    Commented Mar 12, 2014 at 7:30
  • Ok, it was a protocol issue, i set site to open with www always with htaccess. Thanks Елин Й.
    – Vikram
    Commented Mar 12, 2014 at 7:42

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.