FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » object in $_SESSION
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
object in $_SESSION [message #174399] Fri, 10 June 2011 08:02 Go to previous message
Jivanmukta is currently offline  Jivanmukta
Messages: 20
Registered: January 2011
Karma:
Junior Member
Hello,
I need your opinions about my solution of some programming probem. I
have little experience in web developement and PHP.
I have a page insert_send.html with a form. The user enters into the
form path of HTML file with bank statement and presses submit button.
Then import_statement.php program is executed. The program imports
bank statement into Statement object (which is complicated task) and
runs:
$_SESSION['statement'] = serialize($statement);
headerLocation('send_emails.php');
Then send-emails.php program is executed. It runs:
$statement = unserialize($_SESSION['statement'];
and sends emails according to statement positions (which is
complicated task, too).
My question: is the method of transferring Statement object through
session array acceptable in my case? One man told me that passing
objects through sessions is usually an error, but I don't know why.
I decided to separate importing of bank statement and sending emails
into two different files becase of complexity of these tasks.
Please help. Thanks in advance.

newbie
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FDF extensions to PHP will not compile
Next Topic: Setting PDO::ATTR_ERRMODE to E_WARNING before connecting!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 19:25:31 GMT 2024

Total time taken to generate the page: 0.04057 seconds