Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kaushal's avatar

laravel session is not available in parent window controller

Folowing two lines are executed when child window is load Session(['success'=>'User is successfully created.']); echo "parent.$.colorbox.close();window.parent.location.reload();";

Now when i am trying to get echo session('success'); die; in parent window controller then it prints nothing Can any one help me why this happen?

0 likes
2 replies
automica's avatar

Can you post a bit more code here to make it easier to see what you’re doing

automica's avatar

@kaushal can you actually paste some code? like the method that the 2 lines in your original comment is from?

Please or to participate in this conversation.