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 6657899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:49:39+00:00 2026-05-26T01:49:39+00:00

Here is the scenario: when the user is clicking on a link on my

  • 0

Here is the scenario: when the user is clicking on a link on my webpage i want to perform a login to another site, and use the cookies to login the user to the second site.

I’m using PEAR Request2 and i’m able to get the login cookies but when i use:

setcookie($cookies['1']['name'], $cookies['1']['value'], time()+3600, '/');

header("Location: http://www.example.com");

the cookie host is my site and i suspect that is why i get a login error.

Is there anyway to issue a cookie as the secondary site – or do you have any suggestion how can i simulate login (i have all the relevant information) and redirect the user to home page?

  • 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-26T01:49:40+00:00Added an answer on May 26, 2026 at 1:49 am

    Figured it out! you can only set the cookie on the client side for your domain.

    I was fetching the cookies from a 3rd party website and tried to set those cookies, this can only b done using javascript 🙂

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

Sidebar

Related Questions

i've got a site, which has a login system. here's my scenario: user is
Here's the scenario: The user has set that is attending an event, I want
Here I am explaining the scenario - The user, after providing a service has
Here's the scenario: if this is a user's first time logging into my web
Here is my scenario. User fills out this large page which is dynamically created
Tackling a strange scenario here. We use a proprietary workstation management application which uses
Here's my scenario - I have an SSIS job that depends on another prior
So here's the scenario: User: has_one :company accepts_nested_attributes_for :company Controller: @user = User.new @user.build_company
Here is the scenario: a User will see a list of company names, each
Here's the scenario: I have the following user control, the idea is that it's

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.