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

  • SEARCH
  • Home
  • 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 4261020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:59:55+00:00 2026-05-21T05:59:55+00:00

i’m doing the Practical symfony with Doctrine – Jobeet Job Website just trying to

  • 0

i’m doing the Practical symfony with Doctrine – Jobeet Job Website just trying to understand how backend works, i’m trying to overwrite the isAuthenticated() function in frontend and backend, what i did is simple, in my apps\frontend\lib\myUser.class.php file, i did this public

function isAuthenticated()
{
    return (bool)($this->authenticated && $this->getAttribute('is_customer', false, 'sfGuardSecurityUser'));
}

i also overwrite the signIn function of sfDoctrineGuard like this

public function signIn($user, $remember = false, $con = null)
{
    parent::signIn($user, $remember, $con);
    if($this->authenticated){
        $this->setAttribute('is_customer', true, 'sfGuardSecurityUser');
    }
}

i made the same for backend in apps\backend\lib\myUser.class.php but using is_admin, untill now everything is perfect, just that in the backend, when i’m going to edit a Job, the sfGuardSecurityUser in the session get lost, why, because the isAuthenticated() function that is called in this page, is the located in apps\frontend\lib\myUser.class.php, so when i try to change the page i get logged out, cuz isAuthenticated() function called is the located in apps\backend\lib\myUser.class.php, sounds rare, but it only happens in the edit page of the Jobs, now i’m stuck here, hope you all understand me, and to be more specific, when i go to the job/edit page and in the action i put a print_r($_SESSION), i can see this piece

[sfGuardSecurityUser] => Array
            (
                [user_id] => 1
                [is_admin] => 1
            )  

but if i reload the page, i can’t see this piece anymore, so, when i try to change of page, i get logged out, and more, if i comment or remove the isAuthenticated from apps\frontend\lib\myUser.class.php everything in the backend is perfect, but i need to overwrite the function in the backend and frontend

need some help

thanks

  • 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-05-21T05:59:56+00:00Added an answer on May 21, 2026 at 5:59 am

    Try setting exact session names in your apps’ factories.yml:

    all:
      storage:
          class: sfSessionStorage
          param:
            session_name: my_session_name
            session_cookie_domain: example.com
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.