Welcome Guest, Not a member yet? Register   Sign In
Anyone using the session library just for the flashdata?
#8

[eluser]skunkbad[/eluser]
[quote author="WanWizard" date="1275952952"][quote author="skunkbad" date="1275951183"]$_SESSION (by default) destroying itself on browser close is just one example.
Why try to improve something that works perfectly?[/quote]
Depends on your definition of perfectly.

I personally can't appreciate it when a server makes decisions for me. And I have plenty of examples where destroying the session on browser close is not a good idea...

With the session library I can decide (or in this case the admin of our CMS) when to have the session expire.[/quote]

If you want to have $_SESSION extended past browser close, you simply use session_set_cookie_params(). The server never makes decisions for you, and this session_set_cookie_params() function allows for a persistent cookie! Yay for $_SESSION!


Messages In This Thread
Anyone using the session library just for the flashdata? - by El Forum - 06-07-2010, 03:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB