Welcome Guest, Not a member yet? Register   Sign In
Usecase for session flashdata?
#1

[eluser]WolfgangA[/eluser]
Hello,

i gave the new CISession lib from SVN a try and it works perfect.
Also it now includes flashdata.

However i wonder where to use flashdata.

Actually i use it topass an errormessage back, when a user try login-in with wrong credentials. But this could imho be solved using regular data passed to a view.

So where/when do you use flash session data?

Regards

Wolfgang
#2

[eluser]Don Pinkster[/eluser]
Flashdata is usefull when you are redirecting to an other page, its survives the request since it's store in the session.

When you pass data to the view you are stuck in the same request.
#3

[eluser]WolfgangA[/eluser]
Thanks that makes sense.

Regards

Wolfgang




Theme © iAndrew 2016 - Forum software by © MyBB