Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default How does zen cart verify that user has logged in?

    How does zen cart verify that user has logged in?

    I presume it is by session variable?
    Can somebody give me closer details?

    My problem is that I have integrated a flash object to my zen cart which runs a page but it return only login page even though I already have logged in?

    marksu

  2. #2
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: How does zen cart verify that user has logged in?

    The page the flash object runs has application_top.php included so it should start the session, but $_session variable is empty.
    Tha particular page is the main page of my module.

  3. #3
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Script which loads login page?

    Where can I find the script that autoloads the login page if zen cart can't find login information.

    My problem is that my module is using javascript which needs to load a page, but it keeps giving the login page instead.

    I been loking it for ages now and it is getting frustrating.

    Please pretty please give me some direction.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Script which loads login page?

    My problem is that my module is using javascript which needs to load a page
    Please fill in some details about what this is??
    Is this some "custom" module &/or js or is it that your default install is mis-behaving?

  5. #5
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: Script which loads login page?

    Seems like after I ask for instruction I find the place my self. :)

    Correction I do not used javascript but flash object instead, I misswrote in last message.

    I wonder how can I fix situation that flash object keeps returning login page and not the page I asked for.

    Problem seem that (!isset($_SESSION['admin_id'])) return TRUE meaning that session is not set?

    I cant understand why session is empty.
    Could it be that flash object uses separate session id?

    Any info any one?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Script which loads login page?

    What kind of flash?

    A flash page or a flash movie as a header or??

    Post a link to let us see

  7. #7
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: Script which loads login page?

    Thans for responding. :)

    I have not link as it is on my test computer.

    This is my case:
    Page A and B are first running application_top.php, so in my understanding the session should started. Page B script task would be to upload a file.

    Page A includes a flash object and flash object runs Page B which include some upload script.

    Instead of running the upload script the application_top.php code redirect the Page B to login page. So flash object gets the login page and not the page B upload script.


    My logic so far is that flash might you other session id?
    Or can there be other reason login page is activated.

    Note: Before comming to Page A I have logged my self in.

  8. #8
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: Script which loads login page?

    Righ now I test my theory.
    I first need to figure out how to get sesion id with PHP and then send that with the URL.

    Then I need to have my uplod script update the session id.
    Just have to check how session id can be edited etc..

    I tried using session_id function but it return 0?

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Script which loads login page?

    Page A includes a flash object and flash object runs Page B which include some upload script.
    Upload??? uploading what?? Is this a hack?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,451
    Plugin Contributions
    81

    Default Re: Script which loads login page?

    Moderator note: related threads have been merged.

    It's also worth noting that some of the OP's other posts are probably related to the customization that's being attempted in this thread as well.
    Perhaps bigger-picture information may help others to help with possible solutions.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Admin login page loads very slow.
    By oavs in forum General Questions
    Replies: 17
    Last Post: 18 Nov 2023, 01:38 PM
  2. Adding script to header is just login page
    By jeking in forum General Questions
    Replies: 5
    Last Post: 9 Apr 2010, 06:25 AM
  3. JS code appearing on login page....which file?
    By datatv in forum General Questions
    Replies: 4
    Last Post: 24 Sep 2008, 02:33 PM
  4. [HELP] making login script / logout on main page
    By buba in forum General Questions
    Replies: 1
    Last Post: 14 Jun 2007, 09:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg