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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:00:45+00:00 2026-06-14T06:00:45+00:00

so here i am with maybe another stupid question so here i want to

  • 0

so here i am with “maybe another stupid question”
so here i want to ask how to redirect to previous page if the case is somehow like this:
i have view:

a. home_view b. about_view c. contact_view

then i have login view that (now currently after i login it’ll redirect me into the home_view)

I want if i access login_view from about_view then the redirect function will redirect me to about_view, or if i access login_view from contact_view then the redirect function will redirect me to contact_view and so on. How to make redirect function to the previous page(not a single page) ? Maybe some tricks using php? or codeigniter itself?

  • 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-14T06:00:46+00:00Added an answer on June 14, 2026 at 6:00 am

    It’s simple when you have login and you go to login_view just set default redirect to about_view or contact_view when had login.
    But if you want to redirect to previous page you have to trick with session must set session ex : $SESSION['last_view'] = $yourlastview;. $yourlastview can be set when you in about_view or contact_view or another view and when you go to login_view just check that $SESSION['last_view'] and redirect to that view.

    Regard’s

    Jefri

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

Sidebar

Related Questions

maybe it's not so proper to ask this question here... anyway, I'm trying to
Got some solved troubles, but want to ask, maybe here is another solution. Here
I asked this question on superuser , but haven't gotten a response. Maybe here
Sorry for this maybe foolish question but i'm newbie to SQL Server. Here structure
Maybe is a often repeated question here, but i can't find anything similar with
Maybe my title is not the best but here is what I really want.I
Maybe I'm thinking about this the wrong way but here's the idea: Class A
this is probably the most noob question i have ever asked, i need to
First question on SOF, please be gentle if this may be a stupid question.
I have a class definition that looks like this: public class SolrObj { [SolrUniqueKey(id)]

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.