Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

2 Seiten gleichzeitig in Frames laden und PHP-Session

Empfohlene Antworten

Veröffentlicht

Hallo Zusammen!

Ich habe ein Frameset mit 2 Frames. Links befindet sich die Navigation mit Login.

Wenn sich der User nun einloggt, werden in beiden Frames neue Seiten geladen.

..so weit, so gut..

Das Problem ist nun, daß er bei der Seite, die ich mit JavaScript in das eine Frame lade, die Session nicht mitbekommt.

 <script language=\"JavaScript\">

function loadFrame(frame,page)

{

eval(\"parent.\"+frame+\".location='\"+page+\"'\");

}

</script> 

Was muss ich tun damit das so läuft wie geplant?

der beschreibung entnehme ich das du mit PHP Arbeitest ?

du musst die Session manuell anfügen.

also "PHPSESSID=".session_id()."....

ähm... wo bzw. wie muss ich die Anfügen? Innerhalb des JavaScripts?

Oder in der URL? ...... oder ganz wo anders??

Jap, ich arbeite mit PHP...

Ich habs endlich geschnaggelt....

Habs jetzt so abgeändert:


<script language=\"JavaScript\">

function loadFrame(frame,page)

{

eval(\"parent.\"+frame+\".location='\"+page+\"?PHPSESSID=" .session_id()."'\");


}

</script>

Danke für deine Hilfe!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.