How to Maintain session in cakephp

I am very new to cakephp,my application is basically online registration ,it includes two steps in registering,i have two forms to capture data.i want to start session from the first step of registration and i need to store all the forms data in session attributes. after submission of second form data,the session data should save in database. please explain me in steps to do the above task.

-------------Problems Reply------------

you need this https://github.com/jaredhoyt/cakephp-wizard

Steps to save a form data

1) Crate view of the Form 2)On submit of the first step call an action and save your data in session array using this->Session->write('var_name',$array); 3) now on second step of the form submit call the same action and but check fr the condition is this a final submit ,and also session is not empty add those data to the sessions also and then add tht whole session array into database using Insert operation cakePHP 4) after saving the data empty the session array

Category:cakephp Views:0 Time:2011-02-21
Tags: cakephp

Related post

  • how to maintain session state in restful webservics in cakephp? 2011-08-11

    i have develop RESTful web service in cakephp . i am using http GET and POST method and sending request in form of JSON. there is a scenario where i want to maintain session for particular user so i can track it. on server side i maintain a session b

  • Besides URL rewriting, what options are available for maintaining sessions without using cookies? 2008-10-30

    I've seen various options for URL rewriting here on Stack Overflow, and other places on the web, but was curious to see if there were other options. --------------Solutions------------- This is speculation, as Cookies and URL Rewriting are the big tw

  • How do you maintain session state in Apache? 2009-01-21

    I need to maintain session information between REST calls to an Apache server. Not having ever developed on the Apache platform I hope to find a package / module that can help facilitate session information and application security. Please target you

  • How to maintain sessions with C++ code? 2009-06-17

    There is a cgi code written in C++. Currently there is no session management done in the web pages. There is a need to provide sessions in the web pages so that the user can login, maintain session and then logoff. While this is a fairly simple task

  • Best C/C++ Libraries for maintaining session state in CGI application? 2009-06-20

    I have heard of Boost and ACE as two of the well known C++ libraries. What are the other good C/C++ libraries available? Does Boost and ACE support session management for web applications written in C/C++? EDIT: Ok I will try to be domain specific. I

  • What should I do If I want to maintain session between HTTP and HTTPS - Asp.Net 2009-07-28

    What should I do If I want to maintain session between HTTP and HTTPS.. In my site's public area some pages are HTTP and some are HTTPS but I want to keep common session for both.. --------------Solutions------------- Once your user's have authentica

  • Calling WebService using Service Reference and Maintain Session 2009-10-19

    I have a asp.net web-service which I use from my ASP.NET website. I can call it from raw Javascript or jQuery to post/get data. The web-service is enabled with session so that only authorized users can access data. [WebMethod(EnableSession = true)] p

  • How to create and maintain session? 2009-12-10

    I am using HTML, C, CGI. Now I need to create and maintain sessions.How can I do that? If any tutorial talks about this, please let me know. --------------Solutions------------- Do you mean, if you create a session using a CGI program written in Perl

  • Maintaining session in an Eventlet page scraper? 2010-02-19

    I'm trying to do some scraping of a site that requires authentication (not http auth). The script I'm using is based on this eventlet example. Basically, urls = ["https://mysecuresite.com/data.aspx?itemid=blah1", "https://mysecuresite.com/data.aspx?i

  • PHP - Snoopy POST request + maintain SESSION? 2010-03-10

    Using Snoopy I make a request, but it seems that a different SESSION is used for the POST? When I echo the results of the request the SESSION is set but after clicking any link the page returns to a non SESSION-set state. Currently i'm using this cod

  • how to maintain session in cURL in php? 2010-03-11

    how can we maintain session in cURL? i'am having a code the sends login details of a site and logs in successfully i need to get the session maintained at the site to continue. here is my code that used to login to the site using cURL <?php $socke

  • Can not get session in cakePHP 2010-04-13

    I have problem with session in cakephp.I have one file chat.php that is in webroot folder but when I run that file with ajax I could not find session which is created from chat.ctp file. so anyone has idea how to get session in third party file in ca

  • How do I maintain session in windows forms? 2010-08-07

    I want to maintain session on a windows application. How do I maintain the session of a user like we use in ASP.NET to track the user information? --------------Solutions------------- If you mean, how one can serialize program settings the user has d

  • How to maintain session 2010-12-10

    Now i am working one json applivation.I am passing url in http they will reply one json.I getting json and display listview.These working fine but session will not maintain long live.pls help me how to maintain session long live....... --------------

  • Maintain Session State in IPhone Application 2011-04-18

    HI, I want to maintain the session in my iphone application. If the application enter in to background state or application is not active i have to move the user to loging screen. How to do this one? I saw this example but it is not help me to resolv

  • How maintain session beetween two Url in asp. Net 2011-06-23

    I have two URl's . If I open first url it will allow us authentication. Second URL will open web content as XML data. I need to read that data... But when I excute first URL its working fine Authentication is SUCCESS, But immediately I try to open se

  • Maintaining session after browser is closed 2011-07-06

    How does one implement maintaining sessions securely. Suppose just the login page uses SSL. So the user enters his usernamepassword and the http server verifies it is in the database and now what? Does it set some cookie? If so then what should the c

  • ASP.Net - Maintaining session state and site security after authentication via API 2011-10-12

    I'm working on the front-end of a web application and the login page so far basically contains a textbox for username, a textbox for password and a submit button. To authenticate I pass userName and password to the API and is credentials are valid it

  • Coldfusion CFHTTP login to Facebook maintain session 2012-01-06

    How do you login to facebook via cfhttp and maintain session? --------------Solutions------------- Take a look at this, 'Facebook ColdFusion SDK'. I would also recommend using 'Facebook ColdFusion SDK' but if you are looking to scrape data from Faceb

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.118 (s). 11 q(s)