douci2516 2012-12-10 15:47
浏览 36

多站点登录栏

How does one implement a multi-site login bar? I am starting a personal project that would require a header bar above multiple sites that allows users to login or do other things, I am coding this in PHP and have not been able to find anything online other than wordpress plugins.

EDIT: Sorry I wrote this late last night so I was very vague about it. I'll go into a bit more detail.

An example would be the StackExchange bar at the top, I will have one unified login database that each site will access.

I guess I just am curious how best to implement this via PHP or some MVC framework.

  • 写回答

1条回答 默认 最新

  • dounaoji2054 2012-12-10 15:52
    关注

    You would need to add along with a username and password fields, a site field, probably a select input element.

    Before you process the login credentials you would see what site the user has selected and take it from there.

    I'm assuming you are coding this yourself for a custom project.

    If you know sql and basic php sessions or cookies then this shouldn't be too difficult.

    评论

报告相同问题?

悬赏问题

  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 qgcomp混合物线性模型分析的代码出现错误:Model aliasing occurred
  • ¥100 已有python代码,要求做成可执行程序,程序设计内容不多
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答