Alex
Alex

Reputation: 35028

Transmit Session IDs in URLs (Session trans_sid equivalent Laravel)

We are making microsites using Laravel 5 which are included as Iframe in another webpage.

Internet Explorer has the problem, that session cookies are not working in iframe.

So we developed a quite hacky solution to keep the session IDs in the URLs.

I am wondering if there is a ready-made solution for this (I will post my solution later as answer / make a nice module if there is not already a good solution)

Upvotes: 7

Views: 944

Answers (2)

Alex
Alex

Reputation: 35028

I made an open source module for this problem:

https://github.com/iMi-digital/laravel-transsid

It hooks into the session service provider and url generator to write / read the session ID to / from the URL.

Upvotes: 0

Totoro53
Totoro53

Reputation: 358

There is a solution to get your cookies working which you might want to try and might be preferable to putting session IDs in the URL.

Cookie blocked/not saved in IFRAME in Internet Explorer

Upvotes: 1

Related Questions