0

I just found out that I loose any reference to the session array if I create a new view and try to set a session variable in the controller. The array just comes out as empty. I actually try to use the session array to store the post vars from a multistep registration form. This was actually working when the php was spachetticode, but now that I dumpt everything in a mvc pattern, it is not functioning anymore. Can anyone explain what is going om here and possibly offer a solution om how to work with the session array? Thanks in adv, Richard

1
  • There's nothing inherently incompatible or wrong with MVC + Sessions. It's something specific about what you're doing, so this question is impossible to answer without any code or more information. Commented Mar 25, 2010 at 6:28

2 Answers 2

1

Session mechanism has nothing to do with any design pattern. It should work with any.
No, noone can explain you what is going on. Only debugging can tell you.
Here we can only guess. Did you turn power on have session_start() on every page working with the session?

Sign up to request clarification or add additional context in comments.

Comments

0

put the session_start(); on index.php

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.