Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Codeigniter 3.1.11 - Session regenerate and data loss PHP 7.3.11
Post: RE: Codeigniter 3.1.11 - Session regenerate and da...

InsiteFX Wrote: (12-16-2019, 01:17 PM) -- Why not save the users cart on there system using a secure cookie or to the database? -- I am using session in DB, I do not want to post to another databa...
5,564 Views
6 Replies
12-16-2019, 02:14 PM
reesethebeast
    Thread: Codeigniter 3.1.11 - Session regenerate and data loss PHP 7.3.11
Post: RE: Codeigniter 3.1.11 - Session regenerate and da...

I guess I will answer this myself then. I got this partially working by applying a solution from another thread where the REGEX was incorrect when checking the cookie. However this only partially w...
5,564 Views
6 Replies
12-16-2019, 12:06 PM
reesethebeast
    Thread: Codeigniter 3.1.11 - Session regenerate and data loss PHP 7.3.11
Post: Codeigniter 3.1.11 - Session regenerate and data l...

I am using Codeigniter 3.1.11 on my localhost with XAMPP PHP version 7.3.11. I am using database sessions, not file. I wrote some simple code to put user cart data into the session. On the initial ...
5,564 Views
6 Replies
12-12-2019, 07:28 AM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

skunkbad Wrote: (01-20-2018, 10:16 PM) -- reesethebeast Wrote: (01-20-2018, 08:20 PM) -- Thanks Skunkbad. I have the same code but it currently is not updating the hidden input field value. I modifi...
8,839 Views
14 Replies
01-21-2018, 06:17 AM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

Thanks Skunkbad. I have the same code but it currently is not updating the hidden input field value. I modified the Auth form helper to include ID on the hidden token field as there was just name prev...
8,839 Views
14 Replies
01-20-2018, 08:20 PM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

Skunkbad, After some trial and error, I just decided to change all of my AJAX code to use token versus my_token. This seems to work, for the first submission. In a previous forum post of mine you st...
8,839 Views
14 Replies
01-18-2018, 11:18 PM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

Thanks. I will implement these changes and test.
8,839 Views
14 Replies
01-18-2018, 02:21 PM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

reesethebeast Wrote: (01-18-2018, 09:29 AM) -- skunkbad Wrote: (01-18-2018, 09:04 AM) -- reesethebeast Wrote: (01-18-2018, 08:14 AM) -- Modifying /community_auth/helpers/MY_form_helper.php for now ...
8,839 Views
14 Replies
01-18-2018, 09:46 AM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

skunkbad Wrote: (01-18-2018, 09:04 AM) -- reesethebeast Wrote: (01-18-2018, 08:14 AM) -- Modifying /community_auth/helpers/MY_form_helper.php for now has resolved the issue. I added $form .= ''."...
8,839 Views
14 Replies
01-18-2018, 09:29 AM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

Modifying /community_auth/helpers/MY_form_helper.php for now has resolved the issue. I added $form .= ''."\n"; right before return $form;. If this needs to be a permanent solution, I will add ...
8,839 Views
14 Replies
01-18-2018, 08:14 AM
reesethebeast
    Thread: Community Auth Token Name
Post: RE: Community Auth Token Name

skunkbad Wrote: (01-18-2018, 12:27 AM) -- I think this needs a look, but if I recall correctly, the login token is different because if it was the same as your other forms CA might think you other fo...
8,839 Views
14 Replies
01-18-2018, 06:42 AM
reesethebeast
    Thread: Community Auth Token Name
Post: Community Auth Token Name

I am using Codeigniter 3 and Community Auth. My login was working fine until I recently turned off CI CSRF due to AJAX issues and I am now using the tokens helper. All of my JQuery code references...
8,839 Views
14 Replies
01-17-2018, 07:17 PM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

skunkbad Wrote: (11-19-2017, 02:43 PM) -- 1) When you use the form_open function or generate a new token using $this->tokens->token(), the token is automatically added to the tokens cookie. See the "...
12,494 Views
14 Replies
01-16-2018, 02:50 PM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

Resolved. In MY_Controller I was previously checking if the tokens matched like if($this->tokens->match == FALSE){}, I changed to if(!$this->tokens->match){} and this removed the URL prefix on my J...
12,494 Views
14 Replies
11-22-2017, 09:01 PM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

Thanks Skunkbad. I can see the cookie, I modified the code and the values look good. The one issue I am having is that when I submit an AJAX request, it is now returning with the current url as part o...
12,494 Views
14 Replies
11-20-2017, 09:03 PM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

skunkbad Wrote: (11-19-2017, 02:43 PM) -- 1) When you use the form_open function or generate a new token using $this->tokens->token(), the token is automatically added to the tokens cookie. See the "...
12,494 Views
14 Replies
11-19-2017, 05:06 PM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

skunkbad Wrote: (11-18-2017, 12:43 PM) -- reesethebeast Wrote: (11-18-2017, 10:16 AM) -- Thanks Skunkbad, I actually already use Community Auth on my site for autentication. I see that the Token cla...
12,494 Views
14 Replies
11-19-2017, 09:22 AM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

skunkbad Wrote: (11-18-2017, 09:38 AM) -- I never use CodeIgniter's CSRF protection feature. I ended up making my own and using a rotating array of tokens. It helped solve some problems for me. It is...
12,494 Views
14 Replies
11-18-2017, 10:16 AM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: RE: CSRF and Browser Cookie Settings

PaulD Wrote: (11-18-2017, 05:34 AM) -- CSRF requires cookies. In fact sessions require cookies too. I suppose you could do it without cookies although that seems very complicated. You would have t...
12,494 Views
14 Replies
11-18-2017, 05:56 AM
reesethebeast
    Thread: CSRF and Browser Cookie Settings
Post: CSRF and Browser Cookie Settings

I am using codeigniter 3 and I use database settings for cookies and CRSF is active. My site is using SSL as well. I have been having issue where sometimes my forms and AJAX work fine and sometimes I ...
12,494 Views
14 Replies
11-18-2017, 01:23 AM
reesethebeast

Theme © iAndrew 2016 - Forum software by © MyBB