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

johnw65's avatar

Alternative to using Session Key

When using Datables, especially during intensive ajax search, my session randomly drops. So instead of keeping certain user values in a session, I would like to use another method in which the value can be accessed in both blade and controller. These session values are being used by the query builder.

What are some efficient methods to pass this value. Thanks.

0 likes
2 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

How are session variables being dropped? And passing to where? It depends on usage, cookies could be used. Normally in ajax you don't use session data, you pass in query string. But a use case would be helpful.

1 like

Please or to participate in this conversation.