Commit da08e901 by tetiana yaremko

cart session fixed

parent e1259a18
...@@ -23,8 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ...@@ -23,8 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
$config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/'; //$config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/';
//$config['base_url'] = 'http://localhost/webapp/ci/'; $config['base_url'] = 'http://localhost/webapp/ci/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -379,22 +379,22 @@ $config['encryption_key'] = 'femEDWTX$AQ@6HggkKn8RWGf!*ufK?KC'; ...@@ -379,22 +379,22 @@ $config['encryption_key'] = 'femEDWTX$AQ@6HggkKn8RWGf!*ufK?KC';
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here. | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
| |
*/ */
$config['sess_driver'] = 'memcached'; //$config['sess_driver'] = 'memcached';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'localhost:11211';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 7200;
$config['sess_regenerate_destroy'] = FALSE;
//$config['sess_driver'] = 'database';
//$config['sess_cookie_name'] = 'ci_session'; //$config['sess_cookie_name'] = 'ci_session';
//$config['sess_expiration'] = 7200; //$config['sess_expiration'] = 7200;
//$config['sess_save_path'] = 'ci_sessions'; //$config['sess_save_path'] = 'localhost:11211';
//$config['sess_match_ip'] = FALSE; //$config['sess_match_ip'] = FALSE;
//$config['sess_time_to_update'] = 7200; //$config['sess_time_to_update'] = 7200;
//$config['sess_regenerate_destroy'] = FALSE; //$config['sess_regenerate_destroy'] = FALSE;
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 7200;
$config['sess_regenerate_destroy'] = FALSE;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Cookie Related Variables | Cookie Related Variables
...@@ -458,7 +458,7 @@ $config['global_xss_filtering'] = true; ...@@ -458,7 +458,7 @@ $config['global_xss_filtering'] = true;
| 'csrf_regenerate' = Regenerate token on every submission | 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/ */
$config['csrf_protection'] = false; $config['csrf_protection'] = true;
$config['csrf_token_name'] = 'csrf_test_name'; $config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name'; $config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200; $config['csrf_expire'] = 7200;
......
...@@ -99,7 +99,8 @@ class Auth extends CI_Controller ...@@ -99,7 +99,8 @@ class Auth extends CI_Controller
if ($this->form_validation->run() == TRUE) { if ($this->form_validation->run() == TRUE) {
$this->load->model('Register_model', 'reg'); $this->load->model('Register_model', 'reg');
$this->reg->register_user(); $this->reg->register_user();
redirect("register_successful/registration_complete", "refresh"); $name=$this->input->post('name');
$this->load->view("auth/registration_successful", $name);
} }
...@@ -208,6 +209,13 @@ class Auth extends CI_Controller ...@@ -208,6 +209,13 @@ class Auth extends CI_Controller
} }
public function registration_success() {
$this->load->view('registration_sucess');
}
......
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href=" <?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">
<title></title>
</head>
<style>
h2 {
margin-top: 200px;
}
</style>
<body>
<div class="row justify-content-center">
<div class ="col-lg-4 col-lg-offset-8">
<h2> Your registration is successful. Please, <a href="<?php echo base_url(); ?>index.php/auth/login"> log in.</a></h2>
<br><br>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="<?php echo base_url();?>assets/js/bootstrap.min.js"></script>
</body>
</html>
...@@ -259,3 +259,4 @@ em { ...@@ -259,3 +259,4 @@ em {
color: white; color: white;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment