session variables

Questionssession variables
Ali asked 11 years ago

I have a php page called getuser.php which gets the currently logged in user, I want to store this in a session. But when I want to access this session variable on the grid page, it doesn't retrieve it. how can i resolve this?

thanks

3 Answers
Abu Ghufran answered 11 years ago

Please make sure it is saved in session by printing $_SESSION variables.
Also, try calling session_start() at grid page start before you retrieve this session variable.

Ali answered 11 years ago

Yeh did both, won't still work.
I'm using Joomla, is there a possibilty that Joomla could be interfering?

Abu Ghufran answered 11 years ago

Most likely, joomla is resetting $_SESSION and setting it's own factory variables.
You can review joomla documentation for such work.

Btw, if you are using grid inside joomla framework, this thing may happen. Otherwise should work normally.

Your Answer

18 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?