Session To Blob

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Session To Blob

Justin Will
I am trying to write a save/restore of session between database restores.  
Here's what I have so far

method "On Session End"
        IF(<>A4D_ExitingDB)
                READ WRITE([A4D_Session])
                CREATE RECORD([A4D_Session])
                SeqNoGetKey (->[A4D_Session])
                TestAlert("Before")
                SAVE RECORD([A4D_Session])
                [A4D_Session]Session:=Session to Blob
                TestAlert("After")
                SAVE RECORD([A4D_Session])
                UNLOAD RECORD([A4D_Session])
        End If
end method

It seems that when I hit the Session to Blob command execution just stops.  
Notice I have a TestAlert("Before") and after.  The Before gets called but
the after never executes.  What am I doing wrong?

Thanks
Justin

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Session To Blob

aparajita
Administrator
> I am trying to write a save/restore of session between database restores.  
> Here's what I have so far
>
> method "On Session End"
> IF(<>A4D_ExitingDB)
> READ WRITE([A4D_Session])
> CREATE RECORD([A4D_Session])
> SeqNoGetKey (->[A4D_Session])
> TestAlert("Before")
> SAVE RECORD([A4D_Session])
> [A4D_Session]Session:=Session to Blob
> TestAlert("After")
> SAVE RECORD([A4D_Session])
> UNLOAD RECORD([A4D_Session])
> End If
> end method
>
> It seems that when I hit the Session to Blob command execution just stops.  

Check the Active4D log, there should be an error message.

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/