Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:40:47+00:00 2026-06-12T06:40:47+00:00

I have developed a simple Cake application and after finishing coding of it, I

  • 0

I have developed a simple Cake application and after finishing coding of it, I uploaded it to my web server and now it has several problems (It works like a charm on localhost):

  • setFlash messages doesn’t work (I’m using Sessions in database and there are records of some sessions in cake_sessions)
  • After a successful login, it’ll redirect me to the login page again.
  • Sometimes cache files just disappear! (My tmp folder is writeable)

Actually no actions is allowed before logging in but you should see a You are not authorized to access that location. flash message on top of login page but it just doesn’t appear however if you login with a bad username/password it’ll show a message(wth?)

Login and Logout methods of UsersController:

public function login() {
    if ($this->request->is('post')) {
        if ($this->Auth->login()) {
            $this->redirect($this->Auth->redirect());
        } else {
            $this->Session->setFlash(__('Invalid username or password, try again'));
        }
    }
}

public function logout() {
    $this->redirect($this->Auth->logout());
}

Last 100 queries executed (from logs):

SELECT `Session`.`id`, `Session`.`data`, `Session`.`expires` FROM `srv`.`cake_sessions` AS `Session` WHERE `id` = '7orjo8clp192qeie55k6pqro26' LIMIT 1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:40:49+00:00Added an answer on June 12, 2026 at 6:40 am

    Sounds like sessions are broken on your webserver. Check your system clock – if it differs by more than a few minutes your sessions will expire very quickly, if not immediately

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a simple application in GWT. After that, I generate war file
I have developed a simple GWT application with the client/server packages. From server package
I have developed and Simple android application in Java and also uploaded it on
I have developed an simple android application that says hello. Now i have transferred
I have developed a simple Apache-Axis java web service using Eclipse IDE and now
I have developed a simple application using SDK(Android: 3.2[API-13]) for, to display Google banners.
I have developed a simple location aware iPhone application which is functionally working very
I am new to rails and have developed a simple rails application on my
On Windows 7, VB.NET Express, I have developed a simple Forms application. I don't
I have developed a simple server using Tomcat which runs a servlet. The servlet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.