Re: [fw-general] session problem on multiple ajax request

2011-02-21 Thread Benjamin Eberlei
you can add the ajax request onto a stack and execute them in a predefined order, so that they are not simoultaneously. On Mon, 21 Feb 2011 16:01:33 +0200 Serkan Temizel wrote: > Hi zenders, > > I have a session problem. On a page I load 8 to 30 simultaneous ajax > requests to update the page.

[fw-general] session problem on multiple ajax request

2011-02-21 Thread Serkan Temizel
Hi zenders, I have a session problem. On a page I load 8 to 30 simultaneous ajax requests to update the page. When the first request completed all of the following request get 401 authorization required error! I guess the following session regenerate causes this in the bootstrap. protected fu

Re: [fw-general] Session problem

2009-11-24 Thread Fred Jiles
Solved? Zend_Auth and Zend_Acl can be used to Authenicate a user, and also to Authorize a user. For example Zend_Auth will store the user in a session, so you can check to see if that person is logged in. Zend_Acl can use Zend_Auth to see if that person is Authorized to view what they are trying

Re: [fw-general] Session problem

2009-11-24 Thread Jigal sanders
Thanks for your reaction. The book I am following is a new book; this book

Re: [fw-general] Session problem

2009-11-24 Thread Fred Jiles
I would reccomend using zend_acl and zend_auth!! You will love it, and it really isn't that hard to get going. For complex projects it will be way better. I used the video tutorials on youtube by this person http://www.youtube.com/user/integral30 Or try t

Re: [fw-general] Session problem

2009-11-24 Thread Alexander Steshenko
Not sure what means 'to set a session', but it is probably something else than 'to start one'. add session_start(); somewhere in the top of your index.php. 2. Change your book! :) On Tue, Nov 24, 2009 at 10:19 PM, Jigal sanders wrote: > Well, > > This is according to the examples in the book. So

Re: [fw-general] Session problem

2009-11-24 Thread Jigal sanders
Well, This is according to the examples in the book. So this is a big mess with all useless actions just to learn the zf. 1. But the session is set in the public authenticateAction in the account controller. 2. The book doesn't use this in the examples. 3. Probably On Tue, Nov 24, 2009 at 8:16 PM

[fw-general] Session problem

2009-11-24 Thread Jigal sanders
Hello everyone. I am trying something in the zend Framework I have create a project with zend_tool. I have 2 controllers 1. artist controler 2. account controler Within the accountcontroller whenever the user login the $_SESSION['id'] is set to the user id. But as soon as I leave the accou

Re: [fw-general] session problem in zend framework

2009-10-12 Thread Elia C.
I have the same problem. Do you solve it? alexk400 wrote: > > hi, > > I use zend_session to manage session. I have this strange problem that i > want to understand why it is happening. > > I have one browser window1 where i login with my url. Now i open another > window2 using navigation l

Re: [fw-general] session problem in zend framework

2008-01-02 Thread alexk400
anyone? -- View this message in context: http://www.nabble.com/session-problem-in-zend-framework-tp14580013s16154p14588324.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] session problem in zend framework

2008-01-02 Thread alexk400
hi, I use zend_session to manage session. I have this strange problem that i want to understand why it is happening. I have one browser window1 where i login with my url. Now i open another window2 using navigation links and it resets session. In Window1 , i try to refresh , it keeps showing

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Hi, Darby, My problem is gone. I made a mistake: I retrieved session in view, so failed. But I have another question: Where shall put sentences: require_once 'Zend/Session.php'; Zend_Session::start(); I put them in bootstrap, but failed. Then I put it in init() of controller, it worked. So is init

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Hi, Ralph, My problem is gone. I made a mistake: I retrieved session in view, so failed. But I have another question: Where shall put sentences: require_once 'Zend/Session.php'; Zend_Session::start(); I put them in bootstrap, but failed. Then I put it in init() of controller, it worked. So is ini

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Thanks Ralph, I will check and try it. Regards. Ralph Schindler wrote: > > I have just tested your code (in two scripts) and it seemingly works fine. > > $ cat test_session1.php > > require_once 'Zend/Session/Namespace.php'; > $authNamespace = new Zend_Session_Namespace('Zend_Auth'); > $auth

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Thanks Darby. I will check and try it! Regards, Darby Felton wrote: > > Would you please take a look at ZF-1743 and ZF-1720? Maybe the problem > you are experiencing is related in some way to one or both of these: > > http://framework.zend.com/issues/browse/ZF-1743 > > http://framework.zend.co

Re: [fw-general] Session problem

2007-08-01 Thread Ralph Schindler
I have just tested your code (in two scripts) and it seemingly works fine. $ cat test_session1.php user = "myusername"; ?> Username set. $ cat test_session2.php Username is: user; ?> I request session1 file, then request session2 file and i get back the username set in session1 file. Tr

Re: [fw-general] Session problem

2007-08-01 Thread Darby Felton
Would you please take a look at ZF-1743 and ZF-1720? Maybe the problem you are experiencing is related in some way to one or both of these: http://framework.zend.com/issues/browse/ZF-1743 http://framework.zend.com/issues/browse/ZF-1720 If it's not the same problem, please create a new issue, alo

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Hi Dan, Don't give up so easily! Although I have a lot to learn about ZF, I think ZF made a big progress on OOP for PHP. Cheers for the future of ZF and PHP! Dan Rossi-5 wrote: > > minglee wrote: >> Hi, >> I have session problem, which may be stupid: >> I set a session: >> require_once 'Zend/S

Re: [fw-general] Session problem

2007-08-01 Thread minglee
Darby Felton wrote: > > Hello, > Hi, Darby, > My error, I did what you suggest, but failed. > Try: > > require_once 'Zend/Session/Namespace.php'; > $authNamespace = new Zend_Session_Namespace('Zend_Auth'); > echo $authNamespace->user; > > Best regards, > Darby > > minglee wrote: >> Hi, >> I

Re: [fw-general] Session problem

2007-08-01 Thread Darby Felton
Hello, Try: require_once 'Zend/Session/Namespace.php'; $authNamespace = new Zend_Session_Namespace('Zend_Auth'); echo $authNamespace->user; Best regards, Darby minglee wrote: > Hi, > I have session problem, which may be stupid: > I set a session: > require_once 'Zend/Session/Namespace.php'; >

Re: [fw-general] Session problem

2007-08-01 Thread Dan Rossi
minglee wrote: Hi, I have session problem, which may be stupid: I set a session: require_once 'Zend/Session/Namespace.php'; $authNamespace = new Zend_Session_Namespace('Zend_Auth'); $authNamespace->user = "myusername"; How can I retrieve it from ANOTHER page? I used "echo $authNamespace->user;"

[fw-general] Session problem

2007-08-01 Thread minglee
Hi, I have session problem, which may be stupid: I set a session: require_once 'Zend/Session/Namespace.php'; $authNamespace = new Zend_Session_Namespace('Zend_Auth'); $authNamespace->user = "myusername"; How can I retrieve it from ANOTHER page? I used "echo $authNamespace->user;" but failed! Anyb