Jump to content

PHP Login System


barrycorrigan

Recommended Posts

Hi Everyone,

 

Just a quick question before I take on this project.

 

Basically the client has a secure server set up with folders for different clients. So they can store excel files, PDFs etc, What the client use to do was send the client an email with the http address of that clients particular folder to be able to login.

 

What my job is to create a login system that redirects each client to their particular area on the secure system.

 

Is this going to be difficult,

 

What I was thinking of doing was when the administator is setting up the client details there would be an extra field saying address: they paste the address of the folder on the server. Then it will redirect them to their folder.

 

Is this the correct way to do this.

 

Any help or advice would be great.

Link to comment
Share on other sites

hmmm using MySQL? Add another column call it something like "redirect".

For each row set the redirect column to something like "http://website.com/client/area"

then in the login file after sessions have been set use meta to redirect the user to their client area (the url found in "redirect" column)

I would use header() redirect.

 

Also, I would only add the column for the redirect if every user has a different location they're going to.  Personally I would have them all go to the same location, just have it pull the necessary page based on who's logged in.  If you use MVC, you should easily understand what I mean.

Link to comment
Share on other sites

Originally I was going to have every user going to the same place. But the system was built by another company in a totally different language. So I don't really want to touch a system that has been there for years.

 

So the idea of have a redirect by using the redirect column will work perfect thanks for the help everyone :-)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.