Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 12,326
» Latest member: lizismithh
» Forum threads: 68,565
» Forum posts: 427,572

Full Statistics

Latest Threads
automatic logout after in...
Forum: General Help
54 minutes ago
» Replies: 1   » Views: 65
Session Security
Forum: CodeIgniter 3.x
1 hour ago
» Replies: 1   » Views: 25
Question new form validat...
Forum: CodeIgniter 4 Discussion
2 hours ago
» Replies: 3   » Views: 24
New CodeIgniter starter
Forum: CodeIgniter 4 Discussion
6 hours ago
» Replies: 2   » Views: 199
Can ci4 support swoole?
Forum: CodeIgniter 4 Feature Requests
6 hours ago
» Replies: 4   » Views: 432
join slack chat for Codei...
Forum: Lounge
6 hours ago
» Replies: 5   » Views: 3,449
Problem with session file...
Forum: Issues
Yesterday, 03:57 PM
» Replies: 5   » Views: 1,491
Using the remap with para...
Forum: General Help
Yesterday, 03:06 PM
» Replies: 3   » Views: 81
Forum is bugging ?
Forum: Lounge
Yesterday, 03:01 PM
» Replies: 4   » Views: 113
cURL Issue in CodeIgniter
Forum: Issues
Yesterday, 08:36 AM
» Replies: 2   » Views: 599

  Session Security
Posted by: khashabawy - 2 hours ago - Forum: CodeIgniter 3.x - Replies (1)

Today i tried to copy cookies from a browser to another and i found that i was logged in !

in the 2.x version there was browser-based encryption sess_match_useragent

depending on IP change is not practical sess_match_ip as IPs change periodically

So, Guys what is the solution to this problem ?

  Question new form validation rule
Posted by: glennm - 4 hours ago - Forum: CodeIgniter 4 Discussion - Replies (3)


I first posted this question on Github but it was closed and I was directed to the forum so here I am. (Link)
I am also not sure if this is the correct place to post it, I wanted to make a thread in CodeIgniter 4 DeDevelopment first but wasn't able to make a thread there.

So here is the feature I am thinking about that I would like to make in CodeIgniter:
I want to make a "Have I Been Pwned" form validation rule. As you may know this could contain a lot of logic (more than the average current validation rule), so I was wondering does it all have to be in 1 function or is it okay to split it up in multiple functions in the validation file? Or should I maybe make a seperate file for it? (Kinda like the CC validation)

I really think having this new rule available in CodeIgniter is a good step forward to a modern framework in today's state of the internet.
Any feedback is welcome!

  New CodeIgniter starter
Posted by: visualsol - Yesterday, 12:45 AM - Forum: CodeIgniter 4 Discussion - Replies (2)

Hi all,
We put together what I think is a nice simple starter with CodeIgniter 4 Alpha 1.
It's work in progress, so be kind.
We really liked PHPAuth, so we integrated that in a secure area, along with Bootstrap 4 and some basic theming.

Here is the github link:

Some screens:

[Image: register.png]
[Image: login.png]
[Image: forgot.png]

  Why CI4 is slower than CI3
Posted by: arisroyo - 10-20-2018, 06:57 PM - Forum: CodeIgniter 4 Discussion - No Replies

I'm just testing it on the same machine and base on the default welcome page
CI3 Result: Page rendered in 0.0245 seconds. CodeIgniter Version 3.1.9
CI4 Result: Page rendered in 0.1203 seconds. Environment: production

  Using the remap with parameters
Posted by: Qodi - 10-20-2018, 03:11 PM - Forum: General Help - Replies (3)

Do both of these forms work


call_user_func_array(array($this, $method), $params)

  automatic logout after inactive for 10 minutes
Posted by: kvanaraj - 10-20-2018, 12:05 AM - Forum: General Help - Replies (1)

I want to expire session after 10 min .
i try with 

<meta http-equiv="refresh" content="600;url=logout.php" />
need suggestion.

  Updating a session array
Posted by: Qodi - 10-19-2018, 01:35 PM - Forum: General Help - No Replies

I would like to update a session array using the codeigniter session library terminology.

I have a session array named chairs. Each key of the array is the chairID of the associated chair and the value of the chairID key is the quantity of chairs of with that ID.

I am looking at how I can update the array to add chairs to the array. 

I know the php syntax (bold). Below it is a list of possible codeigniter session library approaches I've postulated. They are probably all incorrect, I would appreciate some guidance.

$_SESSION['chairs'][$chairID] = $chairQuant;
$this->sesison->chairs[$chairID] = $chairQuant; (Simply replacing $_SESSION['chairs'] with $this->sesison->chairs)
$this->session->chairs += [$chairID => $chairQuant] (using unary array union operator)

$array = $this->session->chairs; 
array_push($array, array($chairID => $chairQuant))
$this->session->set_userdata(chairs, $array);

}  (Seemingly the most terminologically faithful approach, assign the session array value to another array, update this array using the array_push, then set the session array with the value of this new array. This approach feels very long winded, considering the alternative(s).)

Would appreciate help!


God bless.

  Bug version 3.1.9
Posted by: lucavalentino - 10-19-2018, 01:03 PM - Forum: CodeIgniter 3.x - No Replies

Correct the config / mimes file because it does not read the pptx file properly

I solved this way:

 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/zip', 'application/msword','application/vnd.ms-powerpoint'),

  Database session - No database selected
Posted by: happyape - 10-19-2018, 08:37 AM - Forum: CodeIgniter 4 Support - No Replies

I was going to ask this question but fortunately found the answer by digging into the session handler file.

The main issue is that the documentation doesn't mention yet about this property in the App.php

public $sessionDBGroup

As in my case, in the config/Database.php - I have two groups "development" and "production" i.e. no "default" group because I had set $defaultGroup = ENVIRONMENT; . This created issue for me as \CodeIgniter\Session\Handlers\DatabaseHandler file was looking for database name in the "default" group.

$this->DBGroup = ! empty($config->sessionDBGroup) ? $config->sessionDBGroup : 'default';

If you happen to have the same issue, then all you need to do is that in you App.php just add public $sessionDBGroup = ENVIRONMENT; or name of whatever database group you are using.

Hope that helps anyone having similar issue.

Exclamation Shopping cart library not working
Posted by: Rahul Nakum - 10-19-2018, 03:49 AM - Forum: CodeIgniter 2.x - Replies (1)

Hello guys,

I have a project where i used  code igniter 2.2.2 . In this project i use shopping cart library  it work fine before 5 month but right now i facing the problem to add item in cart it , sometime item has been add and some time not added.

why this thins happen please help me. i am waiting or your valuable response... 


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.