Problem in moving my Codeigniter site from live server to localhost

code123

I am moving my CodeIgniter site from live server to localhost. I have downloaded the files via ftp and database file from Phpmyadmin then i set everything and configured database. But the problem is only my homepage is accessible no login or form submission is happening whatever i do i am redirected to home but that is not the case on live server. I cant understand whats the issue why its working perfectly fine on live server but not on localhost.

I think the problem is that sessions are not working because i cant login. Below are my config file session settings.

$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 86400; //7200
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update'] = 300; //300
$config['sess_regenerate_destroy'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;

$config['cookie_prefix']    = 'app';
$config['cookie_domain']    = 'localhost';
$config['cookie_path']      = '/app/';
$config['cookie_secure']    = FALSE;
$config['cookie_httponly']  = FALSE;
code123

i got this solution from Codeigniter session data lost after redirect by @user2818832 it worked for me.!

if you are working in CI 3.x and just upgraded your server php version to php 7.x

Go to system/libraries/Session/session.php at Line no 281 and replace ini_set('session.name', $params['cookie_name']); by ini_set('session.id', $params['cookie_name']);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Multiple AJAX request in localhost is working but making my live server down

Unable to access codeigniter controller in Live Server but accessible in localhost (xampp on windows)

Why I am getting 'Forbidden' when I try to login on my live codeigniter site?

WordPress localhost site redirect to live site

Error 410 gone after moving from local server to live

Images not showing error after WordPress migration from localhost to live server

Mail sends from localhost but not from live site on digital ocean

Loop variables setting on localhost, but not on live site

DOMPDF not working on live server in codeigniter

Moving a local wordpress site to another localhost

pathinfo() working on localhost but not on the live server

Moving wordpress site from wamp server to a mamp server

Auto return from paypal to my site not working in codeigniter using sandbox

Problems transfering codeigniter 3.0 from localhost to live server hostgator

One page won't show on wordpress after moving from live to localhost

Site not picking styles.Joomla Site deformed after moving to localhost from live server

How to make my site live

time calculation working on localhost but not live site

Problems moving Wordpress from local server to live site

How to migrate WordPress website from localhost to live server?

Getting access denied issue after site moving to live server in magento?

Moving wordpress site from live server to localhost

Moving wordpress site from localhost to live server using GoDaddy cPanel

Unable to connect to Kakfa Server from my localhost

SP working on localhost but not on live server

changes from localhost wordpress to live site wordpress

Why am I getting Undefined variable or index on my localhost by not my live server?

Nodemailer working on Localhost, not on live Netlify site

Wordpress error while moving site from localhost to live server

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    pump.io port in URL

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  14. 14

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  15. 15

    How to use merge windows unallocated space into Ubuntu using GParted?

  16. 16

    flutter: dropdown item programmatically unselect problem

  17. 17

    Pandas - check if dataframe has negative value in any column

  18. 18

    Nuget add packages gives access denied errors

  19. 19

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  20. 20

    Generate random UUIDv4 with Elm

  21. 21

    Client secret not provided in request error with Keycloak

HotTag

Archive